-
Notifications
You must be signed in to change notification settings - Fork 10
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
Certain modded biomes may be too heavy for the default 512MB VRAM amount #20
Comments
I plan to make the VRAM buffer dynamically expand in the future, until then this kind of issue is inevitable. What's your render distance set to, by the way? The default value was selected assuming a 12 chunk render distance. |
Render distance is 16 right now. |
do you have any ideas on how I can retrieve the maximum available gpu vram without using external libraries? |
I've looked into it before and it seems there is no reliable way to do it, just some vendor-specific extensions. Allocating a buffer and checking for an error also doesn't seem to work: if I allocate one larger than my maximum, it succeeds but causes a crash later down the line. So the correct approach seems to be to allocate as much as you need and hope you don't run out. Some solutions I've been pondering are:
I'm currently holding back on any major changes since the MEGA people are looking into hooking up some mod compat, but it's something I (we?) want to experiment with in the future. |
Using a default installation of Gregtech New Horizons 2.3.2 (Java 17) in Prism Launcher, the game appears to constantly build more VRAM without letting any go. When it hits the maximum amount, all chunks get rebuilt.
It happens testing on a specific world seed, where you spawn in a BoP Coniferous Forest, exploring northwest towards the middle of it.
Triggering a chunk rebuild can be as simple as moving your view quickly in the opposite direction.
This video was recorded before I isolated the problem to a standard installation & this specific world.
https://youtu.be/zpTipDM-xIA
By the way, it may help indicate to users if you log to the java console when a rebuild occurs due to vram exhaustion. That was the first place I looked when I discovered my world kept flashing out.
Looks like it settles around 800-1000MB in this biome.
The text was updated successfully, but these errors were encountered: