So I'm basically making a simple 2D RayTracing engine (don't ask why) and i'm drawing thousands of lines every frame which makes my pc lag because it's all running on my poor CPU :( so i want to make it run on my GPU so it's hopefully faster. From what I've read online, I'm pretty sure i should use a compute shader but I don't think it's got GL functionality.
Now if some of you smart people know how to fix those weird patterns in the light, you're also welcome to help :)
Code on StackOverflow: https://stackoverflow.com/questions/74590679/drawing-gl-lines-in-a-compute-shader