Empty game (no logic) has 50% CPU usage and low FPS (40+ instead of 60) on iOS #16734
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
C-Performance
A change motivated by improving speed, memory usage or compile times
O-iOS
Specific to the iOS mobile operating system
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
Tested on both 0.14.2
[Optional] Relevant system information
Tested on
If your bug is rendering-related, copy the adapter info that appears when you run Bevy.
What you did
I setup a bare minimum project to demonstrate the issue https://github.com/80gen/bevy_ios_bug/tree/cpu_high
What went wrong
The game logic doesn't have anything, not even a camera setup, see https://github.com/80gen/bevy_ios_bug/blob/cpu_high/crates/game/src/lib.rs
When running the game on desktop (in my test it's Macbook Pro M1), it looks fine, with CPU usage at 10%. No error log.
But when the game run in either iOS Simulator or physical phone, the CPU usage stay above 50% and FPS average at 40 (should be 60).
Here is a screenshot from the XCode debugger
The XCode terminal is showing the following log
And this line get repeated infinitely
The text was updated successfully, but these errors were encountered: