HVQM no lag!!

This commit is contained in:
CrashOveride95 committed 2020-12-09 14:10:43 -05:00
1 parent a242b18d99
commit d643eda27f
13 files changed
+47 -36

No files matched your search

+8
View File
@@ -1,6 +1,8 @@
#include <ultra64.h>
#include <hvqm2dec.h>
#include "buffers.h"
#include <game/hvqm.h>
#include "config.h"
ALIGNED8 u8 gDecompressionHeap[0xD000];
@@ -41,7 +43,13 @@ ALIGNED8 u8 gAudioSPTaskYieldBuffer[OS_YIELD_AUDIO_SIZE];
ALIGNED8 u8 gUnusedThread2Stack[0x1400];
#endif
ALIGNED16 u8 hvqbuf[HVQ_DATASIZE_MAX];
ALIGNED16 u64 hvq_yieldbuf[HVQM2_YIELD_DATA_SIZE/8];
ALIGNED16 u8 adpcmbuf[AUDIO_RECORD_SIZE_MAX];
ALIGNED16 u16 hvqwork[(MAXWIDTH/8)*(MAXHEIGHT/4)*4];
// Data area for the HVQ microcode
ALIGNED16 HVQM2Info hvq_spfifo[HVQ_SPFIFO_SIZE];
+8
View File
@@ -2,6 +2,7 @@
#define BUFFERS_H
#include <PR/ultratypes.h>
#include <hvqm2dec.h>
#include "game/save_file.h"
#include "game/game_init.h"
@@ -31,4 +32,11 @@ extern u8 gGfxSPTaskStack[];
extern struct GfxPool gGfxPools[2];
extern u8 adpcmbuf[]; /* Buffer for audio records ADPCM) */
extern u64 hvq_yieldbuf[]; /* RSP task yield buffer */
extern HVQM2Info hvq_spfifo[]; /* Data area for HVQM2 microcode */
extern u16 hvqwork[]; /* Work buffer for HVQM2 decoder */
extern u8 hvqbuf[]; /* Buffer for video records (HVQM2) */
#endif // BUFFERS_H