[SOLVED]fatal error

Can anyone tell me what’s going on here!?

197685--7236--$picture_4_483.png

Looks like your game has a leak of memory.

could you show us your scripts to see if you are having memory leaks

well, this is appening because I’m sending to a database the values of position and rotation of one car, each frame (on Update function) using PHP.

The thing is that I’m using 999999 samples. Which means that in the end, I have 999999*(Vector3.position + Quaternion.rotation).

And I’m not happy with it, I need more samples and Unity crashes when I increase this value.

Is there any way to solve this? Do I need more memory in my computer?

Hmm… is there any reason you need one million samples at any one time? If you are storing the values as time goes on can’t you just cache one thousand or something then write that block to the database then re-write them?

don’t know…

But is there a limit? Can I improve this if I get more memory to my computer?

Possibly. But would you rather spend money to upgrade your computer or spend a little time fixing your code?

yep… u’re right.

Now I record one lap at the time. This way Unity doesn’t crash.