View Single Post
Old 14 April 2021, 15:00   #37
VladR
Registered User
 
Join Date: Dec 2019
Location: North Dakota
Posts: 741
Attached you can find the output of the stats (I disabled skybox so we can read it easily) of the engine. I ran this at 640x480.

Numbers are in hexa (obviously) and show the clipped number of pixels per each tile (40 in total) in the order they are rendered (back to front, obviously).

Last number is the total number of pixels drawn : $12843 = 75,843 px

Notice the last 4 tiles (the front ones):

$13EC : 5,100
$2000 : 8,192
$37C8 : 14,280
$4000 : 16,384

These 4 tiles take 43,956px out of 75,843 = 58% !
Basically, front 10% of tiles take almost 60% of CPU power.

Now notice the last 8 tiles, each at $2E = 46px - we could have literally 300 of them and they would take less than the very first tile.


So, the count of tiles means nothing for performance - it's less than a drop in the bucket.


Now, let's see what's the impact of first 10 tiles: $11A66 = 72,294 -> 95%
So, for ~5% of performance, we can quadruple the tile count and visibility.

And we really need at least 10 tiles in the front for any remotely meaningful visibility.
Attached Thumbnails
Click image for larger version

Name:	PowerDrift05.PNG
Views:	173
Size:	15.1 KB
ID:	71586  

Last edited by VladR; 14 April 2021 at 15:17. Reason: typos
VladR is offline  
 
Page generated in 0.06834 seconds with 12 queries