SanAndreasUnity icon indicating copy to clipboard operation
SanAndreasUnity copied to clipboard

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

Open in0finite opened this issue 6 years ago • 2 comments
trafficstars

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.

in0finite avatar Oct 10 '19 13:10 in0finite

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

CrosRoad95 avatar Apr 17 '20 12:04 CrosRoad95

But that way we can't support modded minimaps.

in0finite avatar Apr 17 '20 17:04 in0finite