debiantarte / feudal-overlords

A game about conquering territories and vassalize their Lords to achieve one's ends.
1 stars 0 forks source link

Redo the render loop #25

Closed debiantarte closed 5 years ago

debiantarte commented 5 years ago

There was a memory leak related to the function that builds the GUI that was called every frame, the issue was most probably that widgets were duplicated and never destroyed

We have to either find a way to destroy all widgets at the right time, or do an update function that just updates the textures and texts to the correct values, or even replace some widgets with native SFML elements

debiantarte commented 5 years ago

should be solved with commit 71022206f184e500f509fe75324832a6ffcef385