Hello,
I am developing a 3d engine for about two weeks now, which I would like to use on my GP2X.
Sadly, the performance is abysmal. I get about 1-2 FPS on the GP2X. When I run it natively
I get about 130. Then of course, my computers is some orders of magnitude more powerful.
I would be grateful, if you could tell me some general steps to gain performance on the GP2X,
like CFLAGS, or some tips specific to my program.
I hope the source and my comments are comprehensible. If you have questions, I will answer
them as good as I can.
Profiling output:
and make this function faster. Any suggestions are appreciated.
Source: http://dzs.gaenseblum.org/raycast-0.0.7.tar.gz
€: You may have to change the CFLAGS in the Makefile to get the program to compile.
I am developing a 3d engine for about two weeks now, which I would like to use on my GP2X.
Sadly, the performance is abysmal. I get about 1-2 FPS on the GP2X. When I run it natively
I get about 130. Then of course, my computers is some orders of magnitude more powerful.
I would be grateful, if you could tell me some general steps to gain performance on the GP2X,
like CFLAGS, or some tips specific to my program.
I hope the source and my comments are comprehensible. If you have questions, I will answer
them as good as I can.
Profiling output:
drawslice() accounts for half of the time of the process. So I think it would be reasonable to trygprof said:% cumulative self self total
time seconds seconds calls us/call us/call name
51.47 0.35 0.35 54964 6.37 10.73 drawslice
35.29 0.59 0.24 13214110 0.02 0.02 setpixel
8.82 0.65 0.06 54964 1.09 1.09 castray
4.41 0.68 0.03 renderscene
0.00 0.68 0.00 12288 0.00 0.00 getpixel
0.00 0.68 0.00 16 0.00 0.00 printc
0.00 0.68 0.00 3 0.00 0.00 loadtexture
0.00 0.68 0.00 2 0.00 0.00 data_start
0.00 0.68 0.00 2 0.00 0.00 gettime
0.00 0.68 0.00 1 0.00 0.00 defaults
0.00 0.68 0.00 1 0.00 0.00 initif
0.00 0.68 0.00 1 0.00 0.00 initvideo
0.00 0.68 0.00 1 0.00 0.00 precompute
and make this function faster. Any suggestions are appreciated.
Source: http://dzs.gaenseblum.org/raycast-0.0.7.tar.gz
Run with bin/ray in the main directory of the archive or give the path to data/ as parameter.compilation said:TARGET=native ./configure
make
€: You may have to change the CFLAGS in the Makefile to get the program to compile.
Last edited by a moderator: