Skip to content
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: Game takes too long to process crime work with large number of cycles #1821

Conversation

catloversg
Copy link
Contributor

While making #1657, I suspected that generating CCT is not the only thing that blocks the game engine when the save file has too much bonus time. Now, when I check other mechanics, I find out that crime work also has this problem. This PR puts a cap on the number of processing cycles. Note that crime work of sleeves does not have this problem because we put a cap on sleeve's cyclesUsed before calling this.currentWork.process(this, cyclesUsed);.

How to reproduce this bug:

  • Load the attached save file. Player.lastUpdate is 0 in that save file.
  • Make sure that the game loads normally.

Save file: test-crime-last-update-0.gz

@d0sboots d0sboots merged commit 74ede7d into bitburner-official:dev Dec 12, 2024
5 checks passed
@catloversg catloversg deleted the pull-request/bugfix/game-takes-too-long-to-process-crime-work-with-large-number-of-cycles branch December 12, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants