MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / frame

Method frame

modules/gdscript/gdscript.cpp:2724–2744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2722}
2723
2724void GDScriptLanguage::frame() {
2725#ifdef DEBUG_ENABLED
2726 if (profiling) {
2727 MutexLock lock(mutex);
2728
2729 SelfList<GDScriptFunction> *elem = function_list.first();
2730 while (elem) {
2731 elem->self()->profile.last_frame_call_count = elem->self()->profile.frame_call_count.get();
2732 elem->self()->profile.last_frame_self_time = elem->self()->profile.frame_self_time.get();
2733 elem->self()->profile.last_frame_total_time = elem->self()->profile.frame_total_time.get();
2734 elem->self()->profile.last_native_calls = elem->self()->profile.native_calls;
2735 elem->self()->profile.frame_call_count.set(0);
2736 elem->self()->profile.frame_self_time.set(0);
2737 elem->self()->profile.frame_total_time.set(0);
2738 elem->self()->profile.native_calls.clear();
2739 elem = elem->next();
2740 }
2741 }
2742
2743#endif
2744}
2745
2746/* EDITOR FUNCTIONS */
2747Vector<String> GDScriptLanguage::get_reserved_words() const {

Callers 1

iterationMethod · 0.45

Calls 6

firstMethod · 0.80
selfMethod · 0.80
getMethod · 0.45
setMethod · 0.45
clearMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected