xspanger3770 / GlobalQuake

Experimental application for monitoring earthquakes world-wide in near real time. Capable of issuing its own earthquake early warnings (EEW).
MIT License
325 stars 48 forks source link

Memory leak in the FeatureShakemap #287

Open ekomrak opened 5 months ago

ekomrak commented 5 months ago

Every time the render method is executed new Color object is created for the intensity. New constant Colors are created for the Level class to improve the memory leak issue. Screenshot 2024-04-28 113014

xspanger3770 commented 5 months ago

Thanks! These changes indeed reduce the heap allocations, but the new Color objects were eventually freed, so it was not a memory leak, that would be way worse :)