Skip to content

Conversation

oxters168
Copy link

Hey, I really like the work you did here, thanks for sharing it. I needed some extra parameters for my project so I thought I'd share what I've added.

  • I added the ability to set the fragment/vertex shaders directly using strings
  • I added a way to set the frame rate of the shader when set to continuous to improve performance

If you want me to make any modifications, let me know.

oxters168 added 30 commits May 1, 2022 23:07
Added the ability to directly set the fragment and vertex shaders as strings
Added fps as ShaderView property.
Updated readme.
Changed fps to be used in the await call of the drawing thread rather than the function that checks if ready to draw shader.
Fixed an issue where await was being given 0 rather than expected amount.
Made an fps of 0 or lower a special case.
Updated readme.
Moved thread await to try and fix the continuous stuck issue
Trying a different approach where the draw call is limited directly
Localized fps limiter even further
Moved back to await method but set it to right before drawing happens
Removed semicolon and encapsulated line
Quick sanity check
Fixed a stupid mistake where setting fps would set render mode instead
Reverted to original method
Added debug message to check under the hood
Switched to previously tried approach
Changed start value of prevDrawTime
Changed scope of mPrevDrawTime.
Removed debug message.
Attempt at making timestep more accurate
More localized again
Unlocalized fps.
Added more debug messages.
Opted for microseconds for more accuracy.
Added and removed some debug messages.
Removed some debug messages.
Localized again.
Added more debug messages
Unlocalized again but included more into the if statement.
Removed a debug message.
Removed debug messages.
Changed fps to framerate in ShaderView.
Updated readme.
Added a comment to framerate in ShaderView.
Made a small change to the readme.
Trying await method again.
Made tiny change to readme.
Changed await to sleep.
Added special case fps.
Made small change in readme.
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.

1 participant