HackerPoet / PySpace

GLSL Fractal Ray Marcher in Python
MIT License
1.16k stars 149 forks source link

Input and performance improvments #12

Closed ghost closed 5 years ago

ghost commented 5 years ago

The speed of camera movement should be independent of frame rate. These changes allow smooth and continuous movement when the frame rate is less than 30 per second. This is done by checking how much time has passed between frames, instead of assuming a constant.

Additionally, users can now use other programs while this is running, because it will now check if the window is focused before hijacking the mouse position.

ghost commented 5 years ago

I found this program through your YouTube, and I really like it, so I added a menu too. I hope it's helpful

HackerPoet commented 5 years ago

The first part looks good and I'd like to merge it, but can you move the menu change into a different PR? It seems like an independent feature, and I haven't had time to test it yet.

ghost commented 5 years ago

I removed the menu commit from master and put it on a new branch. It's still based on these changes though, so you can merge these first. I should have made 2 branches to begin with, a real headache to sort out now. Thanks for taking a look at this!