简体   繁体   中英

MonoGame iOS 60 FPS

I am developing a MonoGame app (C#) for iOS using Xamarin Studio in Mac OS X. I have the following code in the Game1.cs constructor but the FPS remains stuck at 30 FPS instead of 60 on my iPhone 4 device:

TargetElapsedTime = TimeSpan.FromTicks(333333 / 2);

While on Windows Phone 8 MonoGame defaults to 60 FPS. Any tips on how to fix this?

Apps/Games on mobile device should be restricted to 30fps, if possible, as anything higher will cause massive battery drain, and your user/customer will not be too pleased with that. I understand that 60fps is the golden standard, but you really need a very compelling case to go to 60fps on mobile.

If you are certain you absolutely, postively, have to go 60fps, the MonoGame source code should provide you with where the 30fps restriction is happening (sorry I can't remember off the top of my head where it is exactly). IIRC we put the 30fps cap in iOS to save developers from having to deal with irrate customers ;).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM