View Single Post
Old 29 June 2023, 14:27   #449
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,680
Quote:
Originally Posted by Muzza View Post
For this game I prioritized load times because of the floppy version and because some of the decompression times can be significant too.
In your example the data loaded/decompressed is 1000k vs 800k, which doesn't seem like like a big difference to me. After all you won't be changing levels that often, right?

But how many disks is that data spread over? Ideally there should be no more than one disk change between levels and no changes if restarting the same level.

Quote:
The downside is that over time, fragmentation increases.
If this is fragmentation of system memory it could make the system unstable. Better to allocate the maximum amount required at startup and use it as your own private pool. If memory allocation fails you just flush and reload all, then the worst case is no worse than option 1.
Bruce Abbott is offline  
 
Page generated in 0.04285 seconds with 11 queries