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
![Image](https://private-user-images.githubusercontent.com/107220/394021015-a844cf36-8cb1-426c-b36a-005c04785cdd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDkwNTMsIm5iZiI6MTczOTYwODc1MywicGF0aCI6Ii8xMDcyMjAvMzk0MDIxMDE1LWE4NDRjZjM2LThjYjEtNDI2Yy1iMzZhLTAwNWMwNDc4NWNkZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwODM5MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNjgzZGJlOGM2MjMyNTRlYmJhMjBjN2IxNjdkNDNjOGJjMzFiZWFkYzcyODRjNmM1MzY2MWIzYmY1YTdjNDc5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._ISHofXxCh0OuL-EWix1h65xdA0bfe6iVuhf98TiteI)
The XCode terminal is showing the following log
And this line get repeated infinitely
The text was updated successfully, but these errors were encountered: