-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
ENIGMASH verbose_logging maxes out CPU #150
Comments
It's a kind of known bug, but the bug is about loss of focus, nothing more. I've known about it, but never got around to doing anything about it. |
I agree, I saw that too. The 'prevents game play' is incorrect, but horribly slow is a better description. My machine is a high end gaming laptop, and it appears to take 100% CPU on one core for nearly 30s. Enigmash is slow at the best of times, and verbose logging shows over 3000 rule applications. My guess is one could put a lot of work into this and improve the speed by 20%. I don't think that's a priority, but getting the focus to work right probably is worth it. |
I've adjusted the title. Yes, I agree, that's a lot of rules. I did wonder if local_radius was broken, but comparing the verbose_logging from a single player move (step left) on the two forks side-by-side I see a comparable number of rules are triggered. That said PSNext does trigger a few more late rules, which is curious. Why should more rules trigger in PSNext? Both sources are 2580 lines - so I assume identical. Here I am comparing... Question... Is local_radius actually working at all? On either fork? |
That's weird. I'll have to look into what those extra rules are. |
Describe the bug
ENIGMASH verbose_logging prevents game play
Reproduction Steps
What did you expect would happen?
verbose_logging works - as it does in it's original fork:
https://jacklance.github.io/PuzzleScript/editor.html?hack=cfdcc6e23f1fb3e9de2fd42fafaf4d4c
OS & Browser version, desktop/mobile
MAC/Desktop/Chrome (also tested Firefox)
Dev and Stable release behave the same
Depending on the browser you may eventually see a pop-up similar to this...
The text was updated successfully, but these errors were encountered: