Skip to content

Add engineStreamingFreeUpMemory#2268

Merged
botder merged 4 commits into
multitheftauto:masterfrom
Pirulax:feature/engineStreamingFreeUpMemory
Aug 3, 2021
Merged

Add engineStreamingFreeUpMemory#2268
botder merged 4 commits into
multitheftauto:masterfrom
Pirulax:feature/engineStreamingFreeUpMemory

Conversation

@Pirulax

@Pirulax Pirulax commented Jun 18, 2021

Copy link
Copy Markdown
Contributor

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
Comment thread Client/game_sa/CStreamingSA.cpp Outdated
Comment thread Client/game_sa/CStreamingSA.cpp Outdated
@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.

3 participants