Send flat picnums to IPU

This commit is contained in:
jndean
2023-11-06 23:46:50 +00:00
parent da40333e03
commit b9640e8dab
6 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ Activity Log:
![Gameplay with untextured walls](README_imgs/flats.gif)
- [x] Split rendering across 32 render tiles. Reformat textures into a big buffer that can be striped over dedicated texture tiles, and accessed by the render tiles using JIT-patched exchange programs to enable fetches based on dynamic indices.
- [x] Split rendering across 32 render tiles. Reformat textures into a big buffer that can be striped over dedicated texture tiles, and accessed by the render tiles using JIT-patched exchange programs to enable fetches based on dynamic indices. So now IPU can texture walls.
![Gameplay with textured walls (but nothing else)](README_imgs/WallsTextured_noCPU.gif)
-1
View File
@@ -319,7 +319,6 @@ void P_LoadThings(const unsigned char *buf) {
P_SpawnMapThing(&spawnthing); // TODO
}
}
//
-2
View File
@@ -310,7 +310,6 @@ void R_AddLine(seg_t *line) {
backsector->floorheight != frontsector->floorheight)
goto clippass;
/* LATER
// Reject empty lines used for triggers
// and special events.
// Identical floor and ceiling on both sides,
@@ -322,7 +321,6 @@ void R_AddLine(seg_t *line) {
curline->sidedef->midtexture == 0) {
return;
}
*/
clippass:
R_ClipPassWallSegment(x1, x2 - 1);
+5 -6
View File
@@ -196,12 +196,11 @@ void R_ClearPlanes(void) {
visplane_t *R_FindPlane(fixed_t height, int picnum, int lightlevel) {
visplane_t *check;
/* LATER
if (picnum == skyflatnum) {
height = 0; // all skys map together
lightlevel = 0;
}
*/
// LATER
// if (picnum == skyflatnum) {
// height = 0; // all skys map together
// lightlevel = 0;
// }
for (check = visplanes; check < lastvisplane; check++) {
if (height == check->height && picnum == check->picnum &&
-1
View File
@@ -296,7 +296,6 @@ void R_AddLine(seg_t *line) {
backsector->floorpic == frontsector->floorpic &&
backsector->lightlevel == frontsector->lightlevel &&
curline->sidedef->midtexture == 0) {
printf(" NOTE: Reject empty lines used for triggers\n");
return;
}
+1 -1
View File
@@ -742,7 +742,7 @@ void R_RenderPlayerView(player_t *player) {
// The head node is the last node output.
R_RenderBSPNode(numnodes - 1);
IPU_R_RenderPlayerView();
// IPU_R_RenderPlayerView();
// Check for new console commands.
NetUpdate();