gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Homebrew-development pipeline - debugging is a problem...

#101166 - HotChilli - Sun Sep 03, 2006 2:57 pm

Eh. I try use this scheme:

0. Write simple crossplatform engine (PC and NDS).

Pipeline:
1. Make program on crossplatform engine, compile and test it on PC (in VC++).
2. Compile .nds and test it on Dualis emulator.
3. Copy program on flashcard and test it on DS.

Ok. But here is some problems with performance speed. Code based on low-level DS-architecture is much faster (in particular direct arm-asm code for game logic)! Sux. :( That's make some troubles with logic-debugging. You must make two programs. One on PC and one on DS- and here is almost no possibility to automatize this developing pipeline.

How you resolve this pipeline-problem? How you develop and debug your homebrew programs?

#101195 - Quirky - Sun Sep 03, 2006 8:16 pm

Time the NDS version with the vblank. Run a timer on the PC version in a seperate thread that simulates the vblank calling a callback funtion 60 times per second.

#101203 - tepples - Sun Sep 03, 2006 9:04 pm

But then wouldn't you get graphical corruption on the PC side if your monitor doesn't run at 60 Hz?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.