MCPcopy Create free account
hub / github.com/defold/defold / UpdateRenderScriptInstance

Function UpdateRenderScriptInstance

engine/render/src/render/render_script.cpp:3576–3592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3574 }
3575
3576 RenderScriptResult UpdateRenderScriptInstance(HRenderScriptInstance instance, float dt)
3577 {
3578 DM_PROFILE("UpdateRSI");
3579 instance->m_CommandBuffer.SetSize(0);
3580
3581 ReleaseConstantBufferLuaRefs(instance->m_RenderContext->m_RenderScriptContext.m_LuaState, instance);
3582
3583 dmScript::UpdateScriptWorld(instance->m_ScriptWorld, dt);
3584
3585 RenderScriptResult result = RunScript(instance, RENDER_SCRIPT_FUNCTION_UPDATE, (void*)&dt);
3586
3587 if (instance->m_CommandBuffer.Size() > 0)
3588 {
3589 ParseCommands(instance->m_RenderContext, &instance->m_CommandBuffer.Front(), instance->m_CommandBuffer.Size());
3590 }
3591 return result;
3592 }
3593
3594 void OnReloadRenderScriptInstance(HRenderScriptInstance render_script_instance)
3595 {

Callers 3

StepFrameFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 6

UpdateScriptWorldFunction · 0.85
ParseCommandsFunction · 0.85
RunScriptFunction · 0.70
SetSizeMethod · 0.45
SizeMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68