Skip to content

Commit

Permalink
- get rid of PC Filesystem spooling micro-freezes on slow hard drives
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapyMan committed Jan 19, 2022
1 parent a139e35 commit e4ff21c
Show file tree
Hide file tree
Showing 7 changed files with 208 additions and 206 deletions.
2 changes: 0 additions & 2 deletions src_rebuild/Game/C/E3stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,6 @@ void SetPleaseWait(char *buffer)
ResetCityType();

#else
ResetCityType();

PsyX_EndScene();
#endif // PSX

Expand Down
11 changes: 1 addition & 10 deletions src_rebuild/Game/C/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,7 @@ void LoadGameLevel(void)
sector = citylumps[GameLevel][CITYLUMP_DATA1].x / CDSECTOR_SIZE;
nsectors = citylumps[GameLevel][CITYLUMP_DATA1].y / CDSECTOR_SIZE;

#ifdef PSX
loadsectors((char*)_primTab1, sector, nsectors);
#else
extern char g_CurrentLevelFileName[64];
loadsectorsPC(g_CurrentLevelFileName, (char*)_primTab1, sector, nsectors);
#endif // PSX

sector += nsectors;

Expand All @@ -428,12 +423,8 @@ void LoadGameLevel(void)
malloc_lump = D_MALLOC(nsectors * CDSECTOR_SIZE);
D_MALLOC_END();

#ifdef PSX
loadsectors(malloc_lump, sector, nsectors);
#else
extern char g_CurrentLevelFileName[64];
loadsectorsPC(g_CurrentLevelFileName, malloc_lump, sector, nsectors);
#endif // PSX

sector += nsectors;

// CITYLUMP_DATA2 - in-memory lump
Expand Down
2 changes: 1 addition & 1 deletion src_rebuild/Game/C/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void ControlMap(void)
region_to_unpack = region_x + region_z * regions_across;

if (current_region == -1)
UnpackRegion(region_to_unpack, region_x & 1U | (region_z & 1U) * 2); // is that ever valid for 'target_barrel_region'?
UnpackRegion(region_to_unpack, region_x & 1U | (region_z & 1U) * 2);

current_region = region_to_unpack;

Expand Down
Loading

0 comments on commit e4ff21c

Please sign in to comment.