in0finite / SanAndreasUnity

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

Minimap can be loaded faster by not using SetPixel() ? #41

Open in0finite opened 4 years ago

in0finite commented 4 years ago

Can it really ?

There are 144 TXDs to load. Each one contains single texture. Each texture is 128x128. This results in 144x128x128 (2.4M) SetPixel()/GetPixel() calls.

The loading step should be profiled. Maybe texture loading takes most of the time.

CrosRoad95 commented 4 years ago

Could you just download some hd version of gtasa map, and load it as asset as a whole?

in0finite commented 4 years ago

But that way we can't support modded minimaps.