Skip to content
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

Add Imgui based Stats component #670

Merged
merged 3 commits into from
Feb 15, 2025
Merged

Add Imgui based Stats component #670

merged 3 commits into from
Feb 15, 2025

Conversation

panxinmiao
Copy link
Contributor

This pull request introduces an Imgui-based Stats component, inspired by pygfx.Stats. It offers three modes: fps/ms (text), fps (histogram), and ms (plot_lines), which can be toggled by clicking.

Its performance surpasses that of pygfx.Stats; replacing pygfx.Stats with this component in the animation example can boost the frame rate by several dozen fps, aiding in obtaining more accurate performance results.

1.mp4

@panxinmiao panxinmiao requested a review from Korijn as a code owner February 15, 2025 05:16
@Korijn Korijn merged commit 9fd7664 into pygfx:main Feb 15, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants