Dont always call R_PointInSubsector if thing has not moved in P_CheckPosition #148

Merged
alufolie91 merged 14 commits from checkposopti into Saturn-Next 2025-01-11 01:37:07 +01:00
alufolie91 commented 2024-12-08 15:56:30 +01:00 (Migrated from github.com)

Effectively, theres no need to constantly iterate through all of the BSP tree for things that dont move horizontally, since not moving means the sector/subsector also does not change
So just reuse the subsector from before in such cases
Idk how much faster this is if at all though this needs a little testing

Effectively, theres no need to constantly iterate through all of the BSP tree for things that dont move horizontally, since not moving means the sector/subsector also does not change So just reuse the subsector from before in such cases Idk how much faster this is if at all though this needs a little testing
alufolie91 commented 2024-12-22 19:27:27 +01:00 (Migrated from github.com)

forgor to mention, also added an optimization so all the checkposition things dont iterate the whole blockmap everytime theyre called in search for polyobjects if there are no polyobjects present at all on the map

forgor to mention, also added an optimization so all the checkposition things dont iterate the whole blockmap everytime theyre called in search for polyobjects if there are no polyobjects present at all on the map
Indev450 (Migrated from github.com) approved these changes 2025-01-04 21:03:28 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: saturn/SRB2Kart-Saturn#148