You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
starting the app normally (CIDER Repl, calling (-main))
the timer starts and works flawlessly
defocus game window
timer events not triggered anymore
focus game window
timer event triggered again
So I guess the timer is on hold when the window is not focused (guess one can hook into that via on-pause and on-resume).
I do not necessarily consider this an issue so far. Maybe a bit weird, that the timer stops, but on-render keeps going...
Here is the real issue, continuing after step 6. from above:
7. run (play-clj/on-gl (play-clj/set-screen! viking-village-vandalism-game main-screen ui-screen))
8. the game window is defocused now (as I switched to the REPL)
9. the screens are reset and start over again, the timer working normally
10. focusing the game window again stops the timer
11. defocusing the game window does not change anything, most importantly does not enable the timer again
(12. GOTO 7. and everything repeats from there)
So, this really seems to be broken somehow.
I am running this on Fedora 23, play-clj "1.0.0".
The text was updated successfully, but these errors were encountered:
Yeah there's a pretty long history of timer-related issues in libGDX. The particular issue you mentioned about its behavior when calling set-screen! is new to me, though. I'll look into it and see if we can do some kind of workaround, but since libGDX is a Java framework I imagine their design doesn't account for calling methods from a REPL =)
I hit this problem as well... after I click on the game window the timer stops firing :( I think its probably simplest just not to use the timer and count down from delta times.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Odd behavior with a timer:
(-main)
)So I guess the timer is on hold when the window is not focused (guess one can hook into that via
on-pause
andon-resume
).I do not necessarily consider this an issue so far. Maybe a bit weird, that the timer stops, but
on-render
keeps going...Here is the real issue, continuing after step 6. from above:
7. run
(play-clj/on-gl (play-clj/set-screen! viking-village-vandalism-game main-screen ui-screen))
8. the game window is defocused now (as I switched to the REPL)
9. the screens are reset and start over again, the timer working normally
10. focusing the game window again stops the timer
11. defocusing the game window does not change anything, most importantly does not enable the timer again
(12. GOTO 7. and everything repeats from there)
So, this really seems to be broken somehow.
I am running this on Fedora 23,
play-clj "1.0.0"
.The text was updated successfully, but these errors were encountered: