Are your Unity Standalone builds run very fast on some computers?

It’s a new problem with some modern AMD and Intel PCs.

But I managed to find a solution from 2013 thanks to the Unity3d forums.

https://answers.unity.com/questions/587571/standalone-builds-run-very-fast-on-some-computers.html

This has to do with the small piece of code where its updating everyframe instead of 1 frame per second.

The remedy is to update the it to Time Flow Update rather than Frame Update. This is what I roughly get though I am not hardware code guy.

You can move the code to FixedFrameUpdate() or use Time.DeltaTime in your C# codes.

here is the sample that was provided.

 //Frame rate Dependent(Bad)
     Update()
     {
       //Move 1x/frame
       transform.position += new Vector3(1,0,0);
     }
     
//Frame rate Independent
     Update()
     {
       //Move 1x/sec
       transform.transform.position += new Vector3(1,0,0) * Time.deltaTime;
     }

Related HASH Tags


Discover more from The Morning Game Dev CG BOSS

Subscribe to get the latest posts sent to your email. No Spam or Dragon Poo.