in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.1k stars 348 forks source link

[Android] FPS drops when close to a vehicle #104

Closed in0finite closed 3 years ago

in0finite commented 3 years ago

Probably related to vehicle shader.

I think that someone proposed a simple shader fix some time ago, but I forgot it.

in0finite commented 3 years ago

The issue was related to shader. Shader was creating array inside of surf() function.

It's fixed as of commit 2232f4327f84f3fba18c97fa28f399af784a7016.