ShyNieke / StatuesMod

A little decorative and functional mod
https://www.curseforge.com/minecraft/mc-mods/statues
Other
8 stars 5 forks source link

Potentially resolve lag by caching models. #34

Closed noobanidus closed 4 years ago

noobanidus commented 4 years ago

Creating a new instance every tick is a recipe for lag.

Quoting tterrag:

"100% native leak, ModelBase has no way to cleanup its buffers, if you create one, you allocate a displaylist"

(Please note this isn't 100% tested... or tested at all. But if it doesn't work it should just be a stupid typo on my part.)