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 > printf problem with libnds example Boxtest

#125921 - a128 - Wed Apr 18, 2007 8:30 am

I just compiled the libnds and the examples from 230307.

the 3d example Boxtest runs fine on Ideas emulator ....

it shows the printf statements on the bottom screen

but on the relas NDS hardware ist just shows one string oft this example

is this a iprintf/printf bug?

#125934 - Lino - Wed Apr 18, 2007 9:53 am

The BOX_TEST is not implemented.

#125948 - a128 - Wed Apr 18, 2007 1:03 pm

from libnds example 3d/mic/BoxTest.c

----
printf("\x1b[2JBox test cycle count");

time = startTimer(0);
int hit = BoxTestf(-1,-1,-1,2,2,2);
printf("\nSingle test (float): %i", 2*(getTimer(0) - time));

time = startTimer(0);
BoxTest(inttov16(-1),inttov16(-1),inttov16(-1),inttov16(2),inttov16(2),inttov16(2));
printf("\nSingle test (fixed): %i", 2*(getTimer(0) - time));

time = startTimer(0);
for(int i = 0; i < 64; i++)
BoxTest(inttov16(-1),inttov16(-1),inttov16(-1),inttov16(2),inttov16(2),inttov16(2));

printf("\n64 tests avg. (fixed): %i", (getTimer(0) - time) / 32);
printf("\nBox Test result: %s", hit ? "hit" : "miss");

glGetInt(GL_GET_VERTEX_RAM_COUNT, &vertex_count);
glGetInt(GL_GET_POLYGON_RAM_COUNT, &polygon_count);

printf("\n\nRam usage: Culling %s", (keysHeld() & KEY_A) ? "none" : "back faces" );
printf("\nVertex ram: %i", vertex_count);
printf("\nPolygon ram: %i", polygon_count);
printf("\n\nPress A to change culling");
printf("\n\nPress B to change Ortho vs Persp");
printf("\nPress Left and Right Up and Down to rotate");
printf("\nPress L and R to zoom");
printf("\nTouch screen to rotate cube");
---

on the NDS hardware I just see the first printf statement....on ideas emulator I see the whole bunch of printf messages

any ideas?