Frictional Games Forum (read-only)
How Many Timers Engine Can Handle? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How Many Timers Engine Can Handle? (/thread-9062.html)



How Many Timers Engine Can Handle? - Tanshaydar - 07-10-2011

Hi all;
I recently switched all of my works to Linux, to use the editors in a more efficient way (I got bored of Windows actually), and then while my roommate was playing a level, I noticed there's a huge fps slowdown. It was like 7 FPS. I tried it on Windows and it was nearly same.

I noticed that if I comment out some timer codes, game works fluently again... My code involved 18 different timer with each 0.1 calling time over and over. Means 360 timer calls in one second. How many call engine can handle?

TL;DR: How many timers can I use in one second?


RE: How Many Timers Engine Can Handle? - Synatic - 07-10-2011

I think the engine is not limitted in those regards, it's mostly a question of your PC, isn't it?
Once again to mention i've no exact facts on this field, just speaking out of my logic :X


RE: How Many Timers Engine Can Handle? - MrBigzy - 07-10-2011

What did the timers do? In one of my maps I has a specific area that called like 10 timers at once and it would always freeze for a second (the timers make a sound play, among other stuff). But when I added the preload for sounds, the spike was gone.


RE: How Many Timers Engine Can Handle? - Tanshaydar - 07-10-2011

It does one thing, then it calls another timer to undo what it did, then it calls same timer, over and over...

I'll have a workaround to overcome the slowdown, an optimization, but I need to know what's the fluent limit? If there is one Tongue