Forum: General

Outputting Frames per Second

Hello Everybody,

I am using pogamut 3.3.0 with UT2004 and would like to ask you about the ways to obtain the Frames per Second during the game. I wanted to make sure my logic function does not lag the game. Is there anyway to output that in real-time?

Thanks,

Hman
Hi!

The only way you can lag UT2004 server is to run too many bots per server. One server can typically support 4-5 bots, we've improved that with GameBots2004 3.3.1-SNAPSHOT to 7-8 bots on smaller maps (e.g. CTF-Lostfaith or DM-1on1-Albatross).

Note that logic() function is evaluated inside Java Virtual Machine and does not block UT2004 by all means (it is totally independent).

But if your logic will last more than 250ms, you will probably miss some info from UT2004 as it will get "discarded" (not fully discarded, details are bit complicate to explain).

Best,
Jakub