Rivmun/SuperFancyCloudsRefabricated

Cloud mesh rebuild fail when play with SFCR too long.

Closed this issue · 0 comments

[17:56:12] [Thread-1579/ERROR]: Uncaught exception in thread "Thread-1579"
java.lang.OutOfMemoryError: Failed to resize buffer from 805306368 bytes to 807403520 bytes
at net.minecraft.class_311.method_37465(class_311.java:21) ~[client-intermediary.jar:?]
at net.minecraft.class_287.method_1335(class_287.java:67) ~[client-intermediary.jar:?]
at net.minecraft.class_287.method_22892(class_287.java:55) ~[client-intermediary.jar:?]
at net.minecraft.class_287.method_1344(class_287.java:310) ~[client-intermediary.jar:?]
at com.rimo.sfcr.SFCReRenderer.rebuildCloudMesh(SFCReRenderer.java:544) ~[%5B超级华丽云%5D%20sfcr-1.4.2.jar:?]
at com.rimo.sfcr.SFCReRenderer.collectCloudData(SFCReRenderer.java:425) ~[%5B超级华丽云%5D%20sfcr-1.4.2.jar:?]
at com.rimo.sfcr.SFCReRenderer.lambda$tick$0(SFCReRenderer.java:146) ~[%5B超级华丽云%5D%20sfcr-1.4.2.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]

Then cloud will never refresh again.
Causing by
builder.vertex(x, y, z).texture(0.5f, 0.5f).color(ColorHelper.Argb.mixColor(colors[normIndex], cloudColorModifier)).normal(nx, ny, nz).next();