gonetz / GLideN64

A new generation, open-source graphics plugin for N64 emulators.
Other
770 stars 178 forks source link

Introduce txHiResUploadLimit #2572

Closed Rosalie241 closed 2 years ago

Rosalie241 commented 3 years ago

This makes the maximum amount of textures loaded in Textures.cpp configurable by the user instead of hardcoding it.

on systems with little VRAM/RAM lowering this value may help to prevent crashes, it will however cause some stutter when we reach the limit (due to the constant removal of textures, however that seems to stabilize after a little while), but that's better than crashing.

Rosalie241 commented 2 years ago

@gonetz I've reworked this PR as discussed in https://github.com/gonetz/GLideN64/issues/2579, please take a look

gonetz commented 2 years ago

Thanks! I had several notes, but it was faster to fix them than to write a review :) My fixes:

I uploaded your PR and my fix to branch https://github.com/gonetz/GLideN64/tree/Rosalie241-txMaximumAmountInVram Please check my fixes. May be I missed smth.