Debugging
SGE comes with a set of tools for measuring performance and resource usage, useful for checking for any inefficiencies or memory leaks.
There are functions for checking performance directly.
avg_fpsmax_fpsmin_fpsget_draw_callsget_drawn_objectsget_engine_timeget_index_countget_max_draw_callsget_max_drawn_objectsget_max_engine_timeget_max_index_countget_max_vertex_countget_vertex_count
See: debugging module
There are also some built-in debug visualisations such as drawing a window, using the engine’s built-in UI library, that shows graphs of the number of vertices/indices drawn and lots of other information.
Use draw_debug_info for graphs, or draw_simple_debug_info for just numbers
(better performance).