-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Fix the song being completable by holding the Window Title Bar #4013
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from some code cleanup, this is pretty slick!
EDIT:
once I figure out how to compile the game in html5 with a scrollbar so I can actually test it lmao
Just edit the HTML/CSS of the page after you compile the app
Something funny that happened when I was testing this (enable audio) 8mb.video-331-RZeI91Ha.mp4 |
oh huh, guess I gotta increase the treshold for the side thread updating /init the side thread from somewhere else since by the looks of it only the main thread lags behind for more than 0.1 seconds Edit: looks like pausing happens for any kind of stutter, whoops! draft it is! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ThreadUtil
looks really useful for mods! I suggest adding a function like createThread()
so scripts can create a thread without having to make it delayed or loooping.
extend treshold + createThread in threadUtils add threadutil use threads to fix a small bug
e87cb7a
to
ef26a62
Compare
Would it be possible to implement mutex ( |
v0.7.0 will have a bunch of threading code in it so this will have to be reconciled with that. |
Does this PR close any issues? If so, link them below.
4005
Briefly describe the issue(s) fixed.
While observing the behavior of how lime handles this kinds of things, I stumbled upon the fact that the Thread that updates the Discord RPC wasn't being affected in any way by dragging the Title Bar of the Window. The bugfix uses the same principle - it creates a Thread that repeats infinitely (every 0.1 seconds since that's max elapsed time according to Flixel) and checks if the main thread is frozen. If it is, the game is paused.
Doesn't work on web builds though! I'll see if there is any way to fix the web exclusive autocomplete bug once I figure out how to compile the game in html5 with a scrollbar so I can actually test it lmao
Include any relevant screenshots or videos.
2025-01-20.22-09-27.mp4