- Home /
PC and Mac builds FPS different?
I have a PC build of our game that calls a Decay function every DecayRate * time.deltaTime. On the PC builds this works perfect and decays from 100% to 0% in around 40 seconds, but when building a Mac build and playing the game on a Mac the object decays extremely fast roughly 2-3 seconds.
Do Unity Mac and PC builds have a different default FPS or is there something to take into consideration when building for a Mac?
Code or it didn't happen. (And only the section in question. We don't need your program's whole life story.)
Do you really use time.deltaTime? The Unity inbuilt class is Time.deltaTime, so have you declared a custom time object somewhere?
Answer by NutellaDaddy · Nov 18, 2013 at 10:58 PM
No, not much really. Did you accidently change a variable or something on your script? Unity automatically makes everything in your project compatable with your build settings.
Answer by Xaikira · Nov 19, 2013 at 06:05 PM
I found out what the issue was. I checked the script from void Update to void FixedUpdate and it sorted out the problem.
I know that you're meant to use FixedUpdate for rigidbody's but as the I wasn't affecting the rigidbody component I didn't think it would matter, turned out it did :P
Your answer
Follow this Question
Related Questions
Character Controller PC versus Mac Problem 2 Answers
iPhone development in Unity 3.0 using PC + MAC? 1 Answer
A node in a childnode? 1 Answer
Unity 3D FBX gun models+hand attached to it 2 Answers
Health Script 1 Answer