-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Use stats-gl for A-Frame stats component #5700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks, nice to have a simpler Line 59 in 29f29fd
Functionally there is an annoying edge-case. With post-processing we override the |
|
Can we remove the unnecessary files? Can we deal with post-processing separately ideally without coupling with a-scene? |
|
I have cleaned up the unused rStats files for now, but the alternative approach mentioned by @mrxz involves a larger overhaul. I don't think I understand how that would be done or what implications it would have. |
|
No worries, it's more thinking out loud than anything concrete. The way post-processing is done leads to conflicts with components that patch/hook into rendering ( The fact that the measured CPU time does not include any system or component logic is a bigger issue IMO. Users would expect it to reflect those as well. But merging this PR as-is, is fine. The above mentioned issue is something that needs to be addressed anyway, at which point the |
|
Needs the tests fixed |
|
Thanks so much! |
|
@arvind-iyer removing the stats component doesn't properly remove the two graphs, it just freeze them. You can test in the console with |
|
The number of draw calls was an interesting metric for me, but I can still access the stats with a console.table: console.table(AFRAME.scenes[0].renderer.info.memory);
console.table(AFRAME.scenes[0].renderer.info.render);@diarmidmackenzie your stats-panel component will probably be broken by this change, you may want to get back some of the previous code into your component. |
I fixed it in #5733 |
Description:
Instead of the current stats implementation, here I have used stats-gl for the performance statistics as discussed in the issue thread #5397
Changes proposed:
Updates to documentation have not been done here yet