Re: A Question About GameLoops
QThread
(and don't sub class it). You could use a QTimer instead of while(true). Don't use while(1) - it's just not classy and stinks of 'C'. You can use while(true) with no problems other than hogging cpu. If this causes a crash, then you have a problem elsewhere...
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks