incorrect delta on safari on mac

15 November 2018 14:29
in safari on mac, the m_main.set_render_callback seems to be out of synch with the actual framerate.

while the framerate is noticably below 10fps, delta is still around 1/60s.
even if i calculate it manually via difference in, the time between executions of render_callback is still around 1/60th.

in all other browsers, render_callback always seems to execute with a displayed frame. therefore delta can be used to apporximate the framerate.

we use this to adjust quality/resolution on the fly, but this bug results in wrong assumptions on safari.
Please register or log in to leave a reply.