Commit Graph

7 Commits

Author SHA1 Message Date
Sebastian Holtermann
7fef91e709 renderer/ShaderProgram: Fix compiler warning 2024-10-19 23:15:18 +02:00
Chris Sarbora
be59b88b26
Improve Renderer Performance
Use orphaned "buffer update streaming" to eliminate synchronization
delays, due to CPU->GPU latency, causing framerate slowdowns. This sends
vertex data to the GPU via partial updates to a buffer and reallocates
the buffer once it fills up, ensuring that no synchronization is ever
needed. The buffer is sized to balance memory usage vs allocation rate,
and the GL driver ensures that "orphaned" buffers are only destroyed
when all GL commands using them are retired.
2024-08-24 17:19:27 -05:00
Chris Sarbora
256898dfc6
Move fog into shader 2024-08-18 03:26:06 -05:00
Chris Sarbora
625b2fc1a1
update vertices modernly 2024-08-18 03:26:06 -05:00
Chris Sarbora
5b4703bf5f
pipe color and texcoords thru the shaders 2024-08-18 03:26:06 -05:00
Chris Sarbora
16df2d764a
Set up transformations in vertex shader 2024-08-18 03:26:03 -05:00
Chris Sarbora
d61deae68d
add rudimentary shaders and machinery 2024-08-18 02:52:46 -05:00