mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-22 08:44:51 +00:00
softgpu: Don't redraw every pixel of a line 16x.
Fixes the insane slowness when processing lines. Now it's just regular super slow.
This commit is contained in:
parent
4de20258eb
commit
74c1b21b59
@ -1237,9 +1237,9 @@ void DrawLine(const VertexData &v0, const VertexData &v1)
|
||||
|
||||
int steps;
|
||||
if (abs(dx) < abs(dy))
|
||||
steps = dy;
|
||||
steps = dy / 16;
|
||||
else
|
||||
steps = dx;
|
||||
steps = dx / 16;
|
||||
|
||||
float xinc = (float)dx / steps;
|
||||
float yinc = (float)dy / steps;
|
||||
|
Loading…
x
Reference in New Issue
Block a user