Henrik Rydgård
1987169c81
OpenGL: When possible, avoid rebinding vertex arrays between glDrawArrays
...
Profitable optimization in DrawArrays-heavy games like GTA.
2023-05-17 18:42:23 +02:00
Henrik Rydgård
a9f2a7d7cd
OpenGL: For contiguous DrawArrays, avoid re-binding the vertex buffer if possible.
2023-05-17 17:57:47 +02:00
Henrik Rydgård
78834a7424
Break out EnableDisableVertexArrays
2023-05-17 17:47:00 +02:00
Henrik Rydgård
1409d2dec4
Remove vestigial support for multiple vertex streams in OpenGL renderer
...
Unused, and made things more complex. Might do this later for all
backends.
2023-05-17 17:44:08 +02:00
Henrik Rydgård
c729519cf5
Merge pull request #17442 from hrydgard/glr-render-command-shrink
...
Shrink the GLRRenderCommand struct from 152 to 88 bytes
2023-05-16 16:38:41 +02:00
Henrik Rydgård
b27c427547
We always bind and draw together, so let's combine them to one command.
2023-05-10 10:56:25 +02:00
Henrik Rydgård
c7caefe6d8
Have Draw and DrawIndexed share command and struct. Will make the next change easier.
2023-05-10 10:40:33 +02:00
Henrik Rydgård
d5e0299b0b
GLR: Share union struct between Draw/DrawIndex
2023-05-10 10:32:13 +02:00
Henrik Rydgård
f593d65833
Avoid double-free in stereo mode
2023-05-10 10:13:54 +02:00
Henrik Rydgård
c882046251
Remove redundant render command
2023-05-10 09:23:10 +02:00
Henrik Rydgård
8f2069ef71
GLQueueRunner: Combine BindVertexBuffer with BindIndexBuffer
2023-05-10 09:23:10 +02:00
Henrik Rydgård
cc16eb8321
Shrink the GLRRenderCommand struct from 152 to 88 bytes
...
Turns out the VR work bloated it a bit, which can't be good.
Think it's fine to allocate these view matrices on the heap to get them
out of the way, there won't be that crazy many per frame usually.
2023-05-10 00:24:17 +02:00
haoruiwang
7cbb7a09e5
[what][style][gpu] some coding style refine
2023-04-18 19:18:38 +08:00
haoruiwang
41d561895b
[what][style][gpu] some coding style refine
...
[how]
1. use comment instead of unnecessary logic comparison
2. remove some useless code
3. move some implemention code from header to source
4. some more assert
2023-03-16 15:07:24 +08:00
haoruiwang
dae11c4ea6
[chore][gpu] Fix some clerical errors for GLQueueRunner but not effect logic
2023-03-14 14:22:13 +08:00
Henrik Rydgård
b687f1bba8
Implement basic block compression support for OpenGL (without feature checks so far)
2023-03-12 00:14:06 +01:00
Henrik Rydgård
742e123b2b
Address feedback
2023-02-07 12:12:00 +01:00
Henrik Rydgård
b4aa120298
OpenGL readback: Move any format convert to when the data is read.
...
Eliminates a copy, and will fit better with delayed readbacks.
2023-02-07 12:12:00 +01:00
Eric Warmenhoven
ec54095b68
Build for iOS as a libretro core
2023-02-07 01:00:47 -05:00
Henrik Rydgård
937975000b
Add a ReadbackMode parameter to more functions in the FramebufferManager
2023-02-05 13:57:45 +01:00
Henrik Rydgård
f773e66e0f
Minor optimization in GLQueueRunner
2023-01-30 11:24:53 +01:00
Henrik Rydgård
f7df69f50c
Change a Crash() to an _assert_msg_
2023-01-01 17:23:24 +01:00
Unknown W. Brackets
49f6c461ad
Reporting: Fix some header includes.
...
Particularly in Common, avoid including Core/Reporting.h.
2022-12-27 14:58:20 -08:00
Henrik Rydgård
b4507cd5cc
Make a lot more code VR build for all platforms
2022-11-06 14:36:51 +01:00
Henrik Rydgård
aa51bfd1ef
Use GPU "use" flags to replace IsVRBuild in the renderer. It remains elsewhere.
2022-10-17 19:57:11 +02:00