Quote from: rongel on Wed 05/01/2022 20:39:31Just curious to know what kind of impact things like these have on the gameplay.
Computers today are quite fast, and even if game runs at 60 fps there's a lot it may do in one frame without slowing down.
Recalculating text's width and changing button's position won't have any noticeable impact.
Still, my advice is to try not to do obviously wrong things, as bad habits persist, and excessive script work may once accumulate to something serious.
AGS does not have much diagnostic features builtin, but there's a "infinite FPS" mode that may be turned on. It will run the game updates as frequent as it can, and displaying fps counter on screen.
To turn "infinite fps" mode you need to run your game exe from command line as "game.exe --fps". Then during the game press Ctrl + E to toggle the mode. In simple games FPS may easily reach thousands.
This mode is useful to see the impact of some actions, as with very high fps numbers it will be easier to spot a relative difference. For example, a difference between 60 and 59 fps may not catch your attention, but if it drops from, say 1500 FPS to 500 in some room, that may be a reason to wonder what is happening.