ChaseHuegel / swordfish-engine

C# engine built on ECS and multithreading with high performance and modding in mind. Targeting PBR-based Low-Fi and 2.5D visuals with VR support!
Apache License 2.0
4 stars 0 forks source link

RenderContext.Unload breaks rendering hardcoded test cubes #28

Closed ChaseHuegel closed 1 year ago

ChaseHuegel commented 2 years ago

This issue only exists as long as the hard coded test cubes exist, it is a dud. This issue is a reminder to re-enable unloading in RenderContext.Reload when test cubes are removed.

ChaseHuegel commented 2 years ago

The current "fix" is to just disable unloading, this is not a final solution. Everytime the RenderContext is reloaded, it will create new OGL objects without disposing of the previous ones. This is a small and intentional memory leak to be able to continue forward with the current state of testing.

ChaseHuegel commented 1 year ago

Irrelevant now, the renderer is undergoing rewrite. See https://github.com/ChaseHuegel/swordfish-engine/pull/70