Skip to content
Snippets Groups Projects

Render precip through blockmap instead of BSP

Closed chromaticpipe ‎ requested to merge chromaticpipe2/srb2classic:precipoptimizations into next

I don't think I can explain this well so here's the note from the original commit

There can be very many precipmobjs in a sector. During BSP rendering, for each sector reached by BSP (the entire visible level at least), all the precipmobjs would be iterated and their distance from the camera calculated, to determine whether they are within draw distance. The issue with the old approach is that there really are too many precipmobjs in each sector. By iterating the blockmap within a certain range instead, precipmobjs out of view are not iterated at all, saving some time.

I haven't tested how much this improves performance yet and also some changes to blockmap code in 2.2.14 made this slightly harder to port

Merge request reports

Closed by chromaticpipe ‎chromaticpipe ‎ 1 month ago (Mar 27, 2025 8:34pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading