From a85b04d0f40df6046850ca37c26cf522846f3110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Y=C4=B1ld=C4=B1r=C4=B1m?= <25794892+barisyild@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:35:56 +0300 Subject: [PATCH] Tracy profiler support added --- src/openfl/display/Stage.hx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openfl/display/Stage.hx b/src/openfl/display/Stage.hx index 9fcb872139..b14eefbe28 100644 --- a/src/openfl/display/Stage.hx +++ b/src/openfl/display/Stage.hx @@ -2162,7 +2162,11 @@ class Stage extends DisplayObjectContainer #if lime implements IModule #end Telemetry.__endTiming(TelemetryCommandName.RENDER); Telemetry.__rewindStack(stack); #end - + + #if HXCPP_TRACY + cpp.vm.tracy.TracyProfiler.frameMark(); + #end + return cancelled; }