Thanks for your answer! :) What kind of polled stuff ?
I noticed that it also happens when the window is focussed the entire time - it takes some time but it happens... what's happening there ?
The game slows down to about 1/5th of the speed- running smoothly so I guess delta time somehow messes up - but how ?
EDIT: Trying fullscreen now - I will report back with my findings.
Yup. Happens in fullscreen aswell, so the window/focus eventhook thing is temporarily out of question - what is wrong with my delta algorithm I just can't seem to get it.
It works like this (pseudocode)
init deltatime
set fps to 45
game mainloop
if screenupdate > 0.75 then
do game stuff
draw stuff
call some types that use (the same) delta aswell
end if
repeat mainloop
I noticed that it also happens when the window is focussed the entire time - it takes some time but it happens... what's happening there ?
The game slows down to about 1/5th of the speed- running smoothly so I guess delta time somehow messes up - but how ?
EDIT: Trying fullscreen now - I will report back with my findings.
Yup. Happens in fullscreen aswell, so the window/focus eventhook thing is temporarily out of question - what is wrong with my delta algorithm I just can't seem to get it.
It works like this (pseudocode)
init deltatime
set fps to 45
game mainloop
if screenupdate > 0.75 then
do game stuff
draw stuff
call some types that use (the same) delta aswell
end if
repeat mainloop