PollSystem() usage

BlitzMax Forums/BlitzMax Programming/PollSystem() usage

Shagwana(Posted 2005) [#1]
Now I have come across PollSystem() command in bmax. Reading the description, sounds like its a way to ensure that bmax programs dont hog all the resources on a computer.

Question is, should I bung a call to it in my main game loop, to ensure my computer games dont act all naughty like and ensure other tasks get there work done?.

If so, do it every frame?, once every 10 millisecs()? or maybe something else?


Robert(Posted 2005) [#2]
PollSystem doesn't seem to reduce usage unless other apps are busy trying to do something. This is okay in most cases, except for laptops like mine which slow down when processor usage is lower.

You should call PollSystem in the main loop, and if your game is doing something long and complex inside a function or method (like a level-loading stage), you should also call it periodically within that function.