Graph-All: 2D Calculator #5 - Multi-Core Processing, Complex Function
2022-Feb-16. Implemented multi-core processing. This is a fairly easy way to get extra performance from the calculation and rendering. I render to a memory buffer via the multiple cores, and then upload to the GPU. Lots more optimizations can be made, but this one is nice to have. I made the function on display randomly to showcase how much processing can be done at a fairly high resolution (still pixel perfect curve rendering) at a decent framerate.
This function is so strange - using arc tangent for angle details, then using a sine wave to make this oscillate back and forth like a ticking grandfather pendulum clock. There is something eerie about this. Then there is a dichotomy between the simple patterns that disappear and begin complex patterns, and the two never wish to touch.
Zooming out produces Moiré patterns, which is interesting, because once the pattern starts to cycle and match the pixel grid again, you start to see the lower detailed versions of the pattern when T is a small value. So while the rendering is technically incorrect, the results truly are the result of the same graph with a few variables slightly adjusted.
Enjoy!
Playlists:
--------------------
- Voxel Software 3D: https://youtube.com/watch?v=uadGU-stF-w&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Ray Casting 3D: https://youtube.com/watch?v=SkaPYZOKPQg&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Graph-All Calculator 2D: https://youtube.com/watch?v=kLSc7bZW2Bs&list=PLjnbT4UISq0YLgynFSpLzml4BMC6TDZL2
- Parallax Side-Scroll Shooter 2D: https://youtube.com/watch?v=l9bIYkZepPo&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- Road Pseudo 3D: https://youtube.com/watch?v=rA4g4VX7ys8&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Arena Shooter 2D: https://youtube.com/watch?v=VKjiuq437t0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU
Websites:
---------------------
- GitHub: https://github.com/JDoucette
- Indie Game Studio: http://xona.com
- Blog: http://thefirstpixel.com