How to remove fps limit?

In the project settings there is vsync checkbox, that has tooltip

But I haven’t found any frame cap option in the project settings or in defold API. So no matter what I have tried there is always 60 fps output.

And as a follow up question, there is hardcoded limit of collection max instances to 32765, right?

You should be able to run as fast as possible by setting the Update Frequency option to 60 and disabling Vsync:

Correct. There is a feature request to remove/raise this limit:

You should be able to run as fast as possible by setting the Update Frequency option to 60 and disabling Vsync

I have already poked with this option, it can limit fps below 60, but I can’t get more than 60 no matter which value I do use, as example I have tried 0, 30, 50, 60, 90, 120, 144.

How I have tested FPS:

  • profiler for Frame always shows ~16ms for values above 60 or 0, for values between 0 and 60 it shows actual values, but the custom fps calculator always shows 60 at max (maybe it calculates them wrong?)
  • custom made calculator based on socket.gettime() from yours https://github.com/britzl/defold-bunnymark, can’t get more than 60 in bunnymark example project too.

I’m on Linux, and just tested it on windows OS and with just unchecked vsync and 0 in Update Frequency fps can go above 60. Not sure if it something with my linux setup, but some other engines can show fps above 60 (OpenGL) without any problems on it.

Forgot to reply, that I have workaround for this issue.

I’m using open source amdgpu driver and it by default locks fps to 60 (or the monitor refresh rate).
There are some other solutions, but I have found the easiest one when I’m in need of benchmarking, just exporting environment variable export vblank_mode=0 and starting defold from the same shell.

defold than logs out repetitive warning ATTENTION: default value of option vblank_mode overridden by environment., so for me it sounds like engine can detect and change (?) its value, because as I have said previously I don’t have such issue with other engines.