Skip to content

Conversation

almarklein
Copy link
Member

@almarklein almarklein commented Jan 15, 2025

I still had this code from the recent big refactorings.

I did a little benchmark, using a glfw window with a no-op draw function:

loop FPS
raw ±20k
asyncio ±10k
trio ±8k
qt ±19k

This shows that the overhead is smaller than other Python loops like Asyncio and Trio, which obviously need to do more work. Fun to see, but also meaningless; In practice I don't think this overhead will affect the fps of a real visualization.

@almarklein almarklein marked this pull request as draft January 15, 2025 20:50
@almarklein almarklein marked this pull request as ready for review January 16, 2025 14:54
@almarklein almarklein requested a review from Korijn January 16, 2025 14:55
@almarklein almarklein merged commit 5d73852 into main Jan 17, 2025
13 checks passed
@almarklein almarklein deleted the raw-loop branch January 17, 2025 08:25
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