- enable swap interval

- sky verts to use scratchpad on PSX
This commit is contained in:
Ilya Shurumov 2021-07-03 15:04:45 +06:00 committed by InspirationByte
parent 9c3686f7b2
commit 9325329860
4 changed files with 15 additions and 23 deletions

View File

@ -669,8 +669,8 @@ void State_GameComplete(void* param)
#ifndef PSX
// set to 60 FPS VSync
// PsyX_SetSwapInterval(1);
// PsyX_EnableSwapInterval(1);
PsyX_SetSwapInterval(1);
PsyX_EnableSwapInterval(1);
#endif
}

View File

@ -817,8 +817,8 @@ void State_GameInit(void* param)
#ifndef PSX
// set to 30 FPS VSync
// PsyX_SetSwapInterval(2);
// PsyX_EnableSwapInterval(1);
PsyX_SetSwapInterval(2);
PsyX_EnableSwapInterval(1);
#endif
}

View File

@ -19,10 +19,10 @@
OVERMAP overlaidmaps[4] =
{
{ 197, 318, 384, 672, 252, 153, 2145 },
{ 229, 85, 544, 352, 187, 136, 2048 },
{ 68, 457, 288, 672, 189, 187, 1911 },
{ 159, 207, 416, 576, 252, 68, 2048 }
{ 197, 318, 384, 672, 252, 0x99, 2145 },
{ 229, 85, 544, 352, 187, 0x88, 2048 },
{ 68, 457, 288, 672, 189, 0xBB, 1911 },
{ 159, 207, 416, 576, 252, 0x44, 2048 }
};
SXYPAIR MapSegmentPos[16];

View File

@ -122,23 +122,18 @@ short skytpage[28];
// [D] [T]
void LoadSky(void)
{
char name[16];
int skyNum;
RECT16 rect;
char name[16];
int offset;
int flipped;
int single;
int v;
int u;
int y;
int x;
int ry;
int i;
int tp_x;
int clut_x;
int u,v,x,y,ry;
int tp_x, clut_x, i;
i = 0;
y = 0;
@ -284,10 +279,7 @@ void LoadSky(void)
sprintf(name, "DATA\\SKY%d.RAW", skyNum);
LoadfileSeg(name, (char*)_primTab1, offset, 0x10000);
rect.x = 320;
rect.y = 0;
rect.w = 128;
rect.h = 256;
setRECT(&rect, 320, 0, 128, 256);
LoadImage(&rect, (u_long*)_primTab1);
@ -829,7 +821,7 @@ void calc_sky_brightness(void)
#ifdef USE_PGXP
DVECTORF scratchPad_skyVertices[35]; // 1f800044
#else
DVECTOR scratchPad_skyVertices[35]; // 1f800044
DVECTOR* scratchPad_skyVertices = (DVECTOR*)getScratchAddr(0x11); // 1f800044
#endif
short scratchPad_zbuff[256];