Profiler show peak frame

Feel like I’m missing something obvious, but I can’t get the peak frame functionality of the profiler to work. I do this:

profiler.enable_ui(true)
profiler.set_ui_mode(profiler.MODE_SHOW_PEAK_FRAME)

But I just get the regular profiler :thinking: By that I mean it’s constantly updating, it never stops on a particular frame.

Am I doing it wrong? If it looks right, could you check that it works for you?

I’m currently thinking it broke when we updated to the new profiler backend :frowning:

In the meantime, can you profile using the web profiler? And if the target platform doesn’t support it (ie html5) then maybe you get useful values when running on desktop?

Do you remember when that was? Maybe I can revert and test with that.

Not sure if I’m doing something wrong, but I don’t understand the web profiler. When I click on a frame, I don’t see any change in the data displayed.

The samples for Main are not showing because it is outside the screen to the right of the other sample windows. Untick AsyncLoad, GraphicsWorker, log, Remotery. This should show the samples of the Main thread and they should update as you select the different samples on the timeline.

2 Likes

Yes, that works thank you! It’s not as useful as the in-built profiler however, as it will be difficult for me to match up specific frames to in-game events. But I can use it for general performance measurement.

I’ve submitted an issue:

2 Likes