wave-harmonic / crest

A class-leading water system implemented in Unity
MIT License
3.46k stars 476 forks source link

Do not execute in background #1101

Closed daleeidd closed 1 year ago

daleeidd commented 1 year ago

In certain cases memory would slowly increase indefinitely. It would be cleared when editor became active again but would like to avoid leaks altogether.

This could be a Unity bug but more effective to patch than report. It also has the benefit of saving energy.

mstevenson commented 1 year ago

Thanks for this, I noticed that the Editor would crash after sitting idle in the background for a few hours with an ocean visible, and I suspect that this was the cause.