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

Add engineStreamingFreeUpMemory #2268

Merged

Conversation

Pirulax
Copy link
Contributor

@Pirulax Pirulax commented Jun 18, 2021

This function is a wrapper around CStreaming::MakeSpaceFor

The downside is that it isn't accurate, at all. The function works more like "try to free up at least this amount of bytes". It usually ends up freeing everything that isn't currently needed (which, depending on the scenery might be 1-200 megs).
EDIT: Turned out I was calling the wrong function. Re-test before merge!

This function will be useful for scripters when #1677 is introduced (along with a function to get the current streaming mem. usage)

@StrixG StrixG added the enhancement New feature or request label Jun 19, 2021
@botder botder merged commit 2282943 into multitheftauto:master Aug 3, 2021
@StrixG StrixG added this to the Next Release (1.5.9) milestone Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants