- Home /
Very low FPS, only build shows problems?
In the editor the game will run at a very high FPS with no apparent issues or error codes. The problem occurs when I try to build the game and run it as a stand alone, it slows to a couple frames per second. I've copied some of the output report and included it here.
(Filename: Line: -1)
IndexOutOfRangeException: Array index is out of range. at Wheel.CalcLongitudinalForce (Single Fz, Single slip) [0x00000] in :0
at Wheel.InitSlipMaxima () [0x00000] in :0 at Wheel.Start () [0x00000] in :0
(Filename: Line: -1)
IndexOutOfRangeException: Array index is out of range. at Wheel.CalcLongitudinalForce (Single Fz, Single slip) [0x00000] in :0
at Wheel.InitSlipMaxima () [0x00000] in :0 at Wheel.Start () [0x00000] in :0
(Filename: Line: -1)
Scene::raycastClosestShape: The maximum distance must be greater than zero! (Filename: ....\Physics\src\NpScene.cpp Line: 2538)
Scene::raycastClosestShape: The maximum distance must be greater than zero! (Filename: ....\Physics\src\NpScene.cpp Line: 2538)
The two lines directly above continue repeating until the game is shut down. Where can I address this particular line of code? It seems I am either missing it or its something not directly viewable.
Fix your coding errors and it'll speed up. It constantly has to write errors to a file, which slows it down. Especially with the amount of errors it seems you are getting
I would fix them if I knew where to find the raycast error, my question wasn't exact clear in that regard.
You are obviously trying to raycast with the maximum distance set to negative something.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110159im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Layers out of order can anyone help? 0 Answers
Error building Unity project in WebGL 0 Answers
LOTS of build errros 0 Answers
Building for iOS Fails, Claiming Sockets in Use, But they Are Not 1 Answer