Jelle Raaijmakers
4c1d8a7785
LibSoftGPU: Optimize clipping code
...
Three optimizations are applied:
1. If the list of vertices to clip is empty, return immediately after
clearing the output list.
2. Remember the previous vertex instead of recalculating whether it is
within the clip plane.
3. Instead of copying and swapping lists around, operate on the input
and output lists directly. This prevents a lot of `malloc`/`free`
traffic as a result of vector assignments.
This takes the clipping code CPU load from 3.9% down to 1.8% for
Quake 3 on my machine.
2022-04-11 19:31:23 -07:00
..
2022-04-01 21:24:45 +01:00
2022-04-06 14:31:52 +02:00
2022-04-03 19:15:14 +02:00
2022-04-09 23:48:18 +02:00
2022-04-03 17:36:48 +01:00
2022-04-03 17:36:48 +01:00
2022-04-01 21:24:45 +01:00
2022-04-11 21:09:42 +02:00
2022-04-01 21:24:45 +01:00
2022-04-09 23:48:18 +02:00
2022-04-01 21:24:45 +01:00
2022-04-08 14:02:02 +04:30
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-03 23:25:39 +01:00
2022-04-01 21:24:45 +01:00
2022-04-11 21:09:52 +02:00
2022-04-09 11:40:33 +02:00
2022-04-09 11:40:33 +02:00
2022-04-09 23:48:18 +02:00
2022-04-10 01:37:45 +02:00
2022-04-01 21:24:45 +01:00
2022-04-09 12:21:43 +02:00
2022-04-12 00:23:27 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-09 23:48:18 +02:00
2022-04-09 12:21:43 +02:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-11 19:31:23 -07:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-09 12:21:43 +02:00
2022-04-07 08:29:10 -04:00
2022-04-01 21:24:45 +01:00
2022-04-01 21:24:45 +01:00
2022-04-09 23:48:18 +02:00
2022-04-01 21:24:45 +01:00
2022-04-12 00:11:48 +02:00
2022-04-07 16:50:34 +02:00
2022-04-06 11:32:24 +02:00