aframe icon indicating copy to clipboard operation
aframe copied to clipboard

[stats] Faces limit seems low.

Open donmccurdy opened this issue 8 years ago • 8 comments

Someone pointed out in Slack that the default <a-sky/> element already exceeds the faces limit:

screen shot 2017-09-04 at 8 53 20 pm

Maybe the sphere resolution should be lowered, maybe not, but regardless I think the stats threshold seems too low. Seems like the limit should be at least maxVertices / 3?

donmccurdy avatar Sep 06 '17 05:09 donmccurdy

Is there some validity to it? Ideally even though it's a bit more work and we should add more support, people would use cubemaps to get it down to 6 faces?

ngokevin avatar Sep 28 '17 17:09 ngokevin

I don't think there's any ~validity~ consistency to it — if 12000 vertices is OK, then 12000 / 3 faces should be OK too.

donmccurdy avatar Sep 28 '17 18:09 donmccurdy

Could someone point me to where this limit is defined? Digging around and can't seem to find it. The faces limit is really not consistent with the vertex limit here.

donmccurdy avatar Jan 14 '18 20:01 donmccurdy

Also — perhaps the stats component should include a link to our performance best practices doc, where we'd explain what Calls means etc.?

donmccurdy avatar Jan 14 '18 20:01 donmccurdy

is it here that it sets the face limit? - https://github.com/aframevr/aframe/blob/master/vendor/rStats.extras.js#L121

sidequestlegend avatar Jul 21 '18 12:07 sidequestlegend

Little rember for this issue, should be easy to fix: The statistics currently give the impression that AFrame is not efficient. And that is not true.

Dirk-27 avatar Nov 17 '23 13:11 Dirk-27

The current limit on triangles is set very low to the point that it's effectively useless. I'd suggest removing rather than increasing the limit. Since A-Frame runs on a wide array of devices there isn't any single value that makes sense.

As a general rule of thumb I'd rather give people the right tools to verify that they're hitting their frame timings. When that isn't the case they should delve into the stats and start profiling to find their bottleneck. Having the stats show a 'red' number for triangles probably leads many down the wrong path when trying to optimize their experience.

mrxz avatar Nov 18 '23 10:11 mrxz

I've thought about it and I completely agree. The only interesting line is the fps/raf value. Maybe this is the only value that should be displayed in red when it is below 30 fps like it is now?

Dirk-27 avatar Nov 24 '23 12:11 Dirk-27