You are not logged in.
Pages: 1
Hey i studied the ppu of nesds and made these changes could you compile it and see if it looks smoother please.
Included PPU.S, NESMAIN.C
Compiles with ARM ADS version source nesds.
Last edited by morbid27 (2008-06-24 8:37:11 pm)
Offline
really its just a small change that might make it look better the code i put in nesmain should work but ya i guess your right ppu wont work im still learning ok so i put the vblank in nesmain maybe it will work?
Nesmain.c
Offline
this is what i added should make it smoother
static void interrupthandler() {
u32 jitter2 = blendFlipFlop<<7;
u32 jitter3 = (blendFlipFlop^1)<<7;
blendFlipFlop ^= 1;
BG3_CX = (32<<8) | jitter3;
BG3_CY = (8<<8) | jitter3;
BG2_CX = (32<<8) | jitter2;
BG2_CY = (8<<8) | jitter2;
void EMU_Init() {
PPU_init();
rescale(0xe000,-0x00060000);
void vramSetBankA(VRAM_A_TYPE 0x28800000);
void vramSetBankB(VRAM_B_TYPE 0x28800000);
videoSetMode(MODE_5_2D | DISPLAY_BG3_ACTIVE | DISPLAY_BG2_ACTIVE); //SCR base=605xxxx, CHR base=600xxxx, OBJ H-blank process disable
BG3_CR = VRAM_A_TYPE
BG2_CR = VRAM_B_TYPE
BLEND_CR = BLEND_ALPHA | BLEND_SRC_BG2 | BLEND_DST_BG3;
BLEND_AB = (8 << 8) | 8;
i think you know what im getting at render two of the same screens then blend them into each other so that flicker is gone
Last edited by morbid27 (2008-06-25 9:37:44 am)
Offline
Pages: 1