google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.35k stars 1.84k forks source link

Metal, fix callbacks being called only once #7856

Closed bejado closed 1 month ago

bejado commented 1 month ago

There was a bug where the frameScheduledCallback and frameCompletedCallback needed to be set before every frame, otherwise they would either be called only once or crash in debug builds.

Fixes #7826

mrousavy commented 1 month ago

nice!!