This is my initial attempt to create C Metal-Bindings to use Metal purely in C..
![Screenshot 2023-09-28 at 15 00 17](https://private-user-images.githubusercontent.com/90724319/271839379-09b27465-092b-49ba-83b5-94f017bc6362.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyMzk0MzUsIm5iZiI6MTcyMDIzOTEzNSwicGF0aCI6Ii85MDcyNDMxOS8yNzE4MzkzNzktMDliMjc0NjUtMDkyYi00OWJhLTgzYjUtOTRmMDE3YmM2MzYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDA0MTIxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRjZGNlNDdjOWE2ZDI2NjhiOGJmODVlN2UwMzk3MzU2NTVmOTk1NjIzN2FlOTM4Zjc5YjE4YWM1YmM0ODZiYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x7E_me79j5pk17i_OrHlOSNXFVfcbTyUzufktgAxBMA)
- Memory Leaks!
For some reason we leaking memory and we can't seem to free the resources as enabling "ARC" doesnt do much in a C environment and manually freeing the objects, seem like not doing much either to reduce the memory leaks on each Frame update in the game loop.
- When you go in full screen (The memory leaks gets worse and jumps to 20GB+ of memory usage)
https://youtu.be/SlqsGsiclLs?si=m3n3UZaUH1Q4VQbD
Any help to fix the memory leaks will be appreciated!
Note that the app leaks memory the moment you open it and every frame the memory used by the app increases too, So I advice you Have the Activity Monitor app opened and set to the "Memory" tab to track memory usage on your system.