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] Fixed memory counter displaying negative numbers #2713

Merged

Conversation

KarimAkra
Copy link
Contributor

when the Gc memory usage exceeds what's around 2GB, the memory counter dies and display negative numbers which is due to the limit of Int32

Screenshot_20240507_223802_dev beefers vendetta

(Note for testing: easiest way to achieve this is by going through every stage in the game)

now the bytes are retrieved as a Float (on cpp targets only) so the memory counter will likely never show negative mem usage (unless you're playing on a nasa PC and got a huge memory leak lol?)

Screenshot 2024-06-09 011647

Copy link
Contributor

@NotHyper-474 NotHyper-474 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@charlesisfeline charlesisfeline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fancy.mov

@EliteMasterEric EliteMasterEric added status: pending triage Awaiting review. type: minor bug Involves a minor bug or issue. status: reviewing internally Under consideration and testing. and removed status: pending triage Awaiting review. labels Jun 17, 2024
@EliteMasterEric EliteMasterEric self-assigned this Jul 11, 2024
@EliteMasterEric EliteMasterEric added the size: small A small pull request with 10 or fewer changes. label Jul 11, 2024
@EliteMasterEric EliteMasterEric added status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. and removed status: reviewing internally Under consideration and testing. labels Jul 11, 2024
@EliteMasterEric
Copy link
Member

approved

@EliteMasterEric EliteMasterEric deleted the branch FunkinCrew:develop July 12, 2024 01:00
@EliteMasterEric EliteMasterEric added this to the 0.5.0 milestone Jul 12, 2024
@EliteMasterEric EliteMasterEric merged commit 85e9dbb into FunkinCrew:develop Sep 16, 2024
@KarimAkra KarimAkra deleted the memory-counter-fix branch September 17, 2024 04:52
@Hundrec Hundrec added the pr: haxe PR modifies game code. label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. type: minor bug Involves a minor bug or issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants