mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-10-26 16:29:37 -04:00
32x: start reworking sheduling
This commit is contained in:
parent
9b5713af95
commit
ed4402a7df
17 changed files with 180 additions and 163 deletions
22
pico/pico.h
22
pico/pico.h
|
|
@ -212,18 +212,24 @@ extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), conv
|
|||
extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to use
|
||||
|
||||
// pico.c (32x)
|
||||
// multipliers against 68k clock (7670442)
|
||||
// normally * 3, but effectively slower due to high latencies everywhere
|
||||
// however using something lower breaks MK2 animations
|
||||
extern int p32x_msh2_multiplier;
|
||||
extern int p32x_ssh2_multiplier;
|
||||
#define SH2_MULTI_SHIFT 10
|
||||
#define MSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3)
|
||||
#define SSH2_MULTI_DEFAULT ((1 << SH2_MULTI_SHIFT) * 3)
|
||||
#ifndef NO_32X
|
||||
|
||||
void Pico32xSetClocks(int msh2_hz, int ssh2_hz);
|
||||
|
||||
// 32x/draw.c
|
||||
void PicoDraw32xSetFrameMode(int is_on, int only_32x);
|
||||
|
||||
#else
|
||||
|
||||
#define Pico32xSetClocks(msh2_khz, ssh2_khz)
|
||||
|
||||
#endif
|
||||
|
||||
// normally 68k clock (7670442) * 3, in reality but much lower
|
||||
// because of high memory latencies
|
||||
#define PICO_MSH2_HZ ((int)(7670442.0 * 2.4))
|
||||
#define PICO_SSH2_HZ ((int)(7670442.0 * 2.4))
|
||||
|
||||
// sound.c
|
||||
extern int PsndRate,PsndLen;
|
||||
extern short *PsndOut;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue