Henrik Rydgård
1221a6e928
Minor code cleanups
2024-10-28 17:50:34 +01:00
Henrik Rydgård
7738899434
Fix triangle strip vertex order to have a consistent provoking vertex
2024-07-17 16:12:03 +02:00
Henrik Rydgård
c50399fa71
Fix stray line in NFS Underground Rivals
...
Fixes #18846
2024-02-12 18:03:39 +01:00
Henrik Rydgård
61acce195c
Avoid decoding indices when we don't need them.
2023-12-20 14:25:19 +01:00
Henrik Rydgård
48a1348352
Move a var for clarity
2023-11-01 21:30:04 -06:00
Henrik Rydgård
ee6ffac28e
Ignore triangle strips with less than 3 vertices.
...
Should fix the new issue reported in #18273
2023-11-01 21:28:37 -06:00
Henrik Rydgård
c7a3e7bc32
Remove a redundant variable
2023-10-06 16:32:59 +02:00
Henrik Rydgård
92ffef2626
Remove some state from IndexGenerator, fix bugs. Mostly works except vertex cache.
2023-10-03 11:01:37 +02:00
Henrik Rydgård
df7bd89b7d
Division->shift. since it's a signed integer, gets rid of a cdq instruction.
2023-06-13 11:57:28 +02:00
Henrik Rydgård
0eb3702ecb
Then add the early-outs for NEON too.
2023-06-13 11:48:04 +02:00
Henrik Rydgård
9647872a09
Same for NEON, first the refactor...
2023-06-13 11:48:04 +02:00
Henrik Rydgård
77da36c03f
SSE addstrip: Add the early-outs.
2023-06-13 11:47:53 +02:00
Henrik Rydgård
39034586a4
SSE: Refactor AddStrip to prepare for early out
2023-06-13 11:45:59 +02:00
Henrik Rydgård
2a2a4a21d9
More cleanup
2020-09-24 10:03:07 +02:00
Henrik Rydgård
deedc7a1fe
Cleanup
2020-09-24 09:49:28 +02:00
Henrik Rydgård
d8ddef150f
IndexGenerator::AddStrip: Avoid the fallback by writing a few extra indices if necessary.
...
Actually a decent boost.
2020-09-24 09:36:39 +02:00
Henrik Rydgård
be54050521
Also optimize IndexGenerator::AddStrip for ARM NEON.
2020-09-24 09:24:03 +02:00
Henrik Rydgård
df9a5cc0f2
Buildfix
2020-09-24 02:09:39 +02:00
Henrik Rydgård
1a2597a513
SSE-optimize IndexGenerator::AddStrip. Shaves about half a percent from GoW.
2020-09-24 02:03:15 +02:00
Henrik Rydgård
ccea07ab94
Merge pull request #13438 from hrydgard/header-cleanup
...
Some header include cleanup
2020-09-16 13:46:50 +02:00
Henrik Rydgård
c1194dcb52
Help the compiler out a little bit in IndexGenerator::AddStrip.
...
The generated code wasn't good - this helps break long register
dependency chains.
Speed boost is measurable but small on x86, but might be bigger on simpler CPUs.
2020-09-16 09:23:12 +02:00
Henrik Rydgård
1b3413945b
Some header include cleanup
2020-09-16 09:20:41 +02:00
Unknown W. Brackets
7b815af331
GPU: Force use of indexes on cull mode flip.
...
Since we flip in the index, it can't be pure in this case.
2018-11-30 07:22:28 -08:00
Unknown W. Brackets
1517d66d4e
GPU: Properly flip cull on simple triangle lists.
...
Fixes #11601 .
2018-11-29 19:03:38 -08:00
zhang wei
f2e3476741
triangles
2018-06-05 10:39:40 +08:00