Commit graph

22 commits

Author SHA1 Message Date
James R
d2d9edb7e3 R_MapPlane, R_MapTiltedPlane: return on invalid coordinates, debug print in devmode render 2024-03-02 22:25:46 -08:00
James R
27b4013c18 R_DrawColumn_Template: fix non-po2 column drawing
- Fix for efd017085
- To preserve tutti-frutti fix, offset drawing with
  texheight, but detect po2 with sourcelength
2024-02-09 19:46:45 -08:00
Eidolon
591af1ab95 Add parallelsoftware cvar
In the rare case where kernel thread scheduling causes hitching issues
(SteamOS?), there should be an option to dynamically toggle multithread
dispatch of plane drawing.
2024-01-29 19:26:04 -06:00
James R
044bfdc83a debugfinishline: highlight stumble sectors in yellow 2024-01-26 18:10:07 -08:00
James R
1698e80650 Refactor R_PlaneIsHighlighted 2024-01-26 18:10:07 -08:00
Sally Coolatta
7415b5ef2f Fixed "splat" drawers
- Fix flat DS_HOLES referencing incorrect background pixel
- Add SPANDRAWFUNC_TILTEDTRANSSPLAT (fixes Lost Colony)
2024-01-11 01:50:46 -08:00
Sally Coolatta
24132a9dcd Use C++ templates for DrawColumn/Span
Two reasons:
- Makes it more straight-forward to add brightmaps to the non-power-of-two rendering functions.
- Made it easier to split off brightmap rendering. Hopefully improves performance, but I haven't thoroughly tested this.
2024-01-11 01:50:46 -08:00
Sal
c615a4fbad Sky offsets
Both X and Y offsets work on sky textures now. Old incorrect offset has been removed, so old skies lined up with the horizon special should be set to +16 Y offset.
2024-01-07 18:29:41 -05:00
Eidolon
183ca15989 Fix parallel slope plane calculations 2023-10-16 17:09:35 -05:00
Eidolon
25ca00c553 wrong argument to SetSlopePlaneVectors 2023-10-15 20:55:19 -05:00
Eidolon
33f959628e Calculate slope vectors per tilted ripple span 2023-10-15 19:32:18 -05:00
Eidolon
68a8f2b274 Multithread software drawing 2023-10-14 15:26:52 -05:00
James R
5415674034 debugfinishline: highlight deathpits and instakill planes 2023-10-04 20:17:31 -07:00
James R.
7b3010c93d Fix many instances of splitscreen view number if there are duplicate displayplayers
- Avoid iterating displayplayers to find view number and
  prefer R_GetViewNumber.
- Iterate over all matching displayplayers if necessary,
  instead of stopping at the first match.
2023-10-03 21:28:33 -07:00
Eidolon
689f5b8365 Tracy instrument software BSP traversal and render 2023-09-18 16:19:31 -05:00
James R.
635d9dca3e R_FindPlane: fix offsets rotation overflow for non-sloped planes 2023-09-13 00:27:06 -07:00
Oni
87d7cae5d3 Merge branch 'brightmap-conversion' into 'master'
Convert BRIGHTMAP texture columns to match associated texture

See merge request KartKrew/Kart!1473
2023-09-10 19:50:25 +00:00
James R.
717a9e3f97 Add R_GetBrightmapColumn, convert brightmaps to associated texture's column layout
- Ensures that column drawer doesn't read out of bounds
  the brightmap column.
- Refactored code in r_segs.cpp, so it checks
  R_TextureHasBrightmap.
- Added comments for plane brightmaps and sprite
  brightmaps, that these are still error-prone.
2023-09-09 21:08:11 -07:00
Eidolon
f3cb5cdaba Clamp tilted ripple spans to viewheight
Mitigates against KartKrew/Kart#658 crash but only in release builds.
2023-09-09 12:02:23 -05:00
Eidolon
ecd843f0f0 Use srb2's version of the ripple fix 2023-09-03 09:59:58 -05:00
Eidolon
210186d8f2 Clamp ds_bgofs in sw water ripples to fix crash 2023-09-02 16:03:50 -05:00
Eidolon
96af259c50 r_plane.c -> r_plane.cpp 2023-09-02 16:03:38 -05:00
Renamed from src/r_plane.c (Browse further)