pmprog
DNF (Did Not Finish)
- Joined
- Apr 25, 2011
- Messages
- 4,150
So my game has made some pretty nice progress, and I'm getting to the end of the core code, so I thought I'd do a Pandora compile and see how it fairs on there.
The performance was okay and certainly playable, but not exactly outstanding considering how simplistic it is.
So I ran "perf record", and this is everything > 1% overhead (I can post the whole file if it's worth it?)
None of it is in my code, and the rendering isn't exactly complicated with less than 20 elements on the screen at all times (well, depending on how Allegro draws text I guess).
I'm not exactly sure what I can do to improve the performance. Does anybody have any ideas what I can look at?
The performance was okay and certainly playable, but not exactly outstanding considering how simplistic it is.
So I ran "perf record", and this is everything > 1% overhead (I can post the whole file if it's worth it?)
# Overhead Command Shared Object Symbol
# ........ ......... ................................................................... .................................................................................................................................................................................................
#
16.72% SJKTdebug /usr/lib/libGLESv2.so.1.4.14.2616 0x1cc60 d [.] 0x1cc60
8.59% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x2bd8 d [.] mdct_butterflies.isra.0
6.94% SJKTdebug /mnt/utmp/codeblocks/usr/lib/liballegro_audio.so.5.1.8 0x7800 d [.] read_to_mixer_linear_float_32
5.98% SJKTdebug /usr/lib/libsrv_um.so.1.4.14.2616 0x202c d [.] PVRSRVWaitus
5.10% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x5434 d [.] mdct_backward
3.86% SJKTdebug /mnt/utmp/codeblocks/usr/lib/liballegro_audio.so.5.1.8 0x5e54 d [.] _al_kcm_mixer_read
3.38% SJKTdebug /lib/libc-2.9.so 0x6f300 d [.] memcpy
2.76% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbisfile.so.3.3.6 0x6c98 d [.] ov_read_filter
2.70% SJKTdebug /usr/lib/libasound.so.2.0.0 0x1d3c8 d [.] 0x1d3c8
2.69% SJKTdebug [kernel.kallsyms] 0xc0050618 k [k] do_sys_times
2.54% SJKTdebug /lib/libm-2.9.so 0x15da0 d [.] floorl
2.49% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0xc954 d [.] vorbis_synthesis_blockin
2.04% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libpng14.so.14.12.0 0xa2c0 d [.] png_read_filter_row
1.83% SJKTdebug [kernel.kallsyms] 0xc0201ee0 k [k] __memzero
1.70% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x1da18 d [.] vorbis_book_decodevv_add
1.60% SJKTdebug /mnt/utmp/codeblocks/usr/lib/liballegro_image.so.5.1.8 0x5504 d [.] really_load_png
1.34% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x1b2c0 d [.] mapping0_inverse
1.26% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x161bc d [.] floor1_inverse2
# ........ ......... ................................................................... .................................................................................................................................................................................................
#
16.72% SJKTdebug /usr/lib/libGLESv2.so.1.4.14.2616 0x1cc60 d [.] 0x1cc60
8.59% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x2bd8 d [.] mdct_butterflies.isra.0
6.94% SJKTdebug /mnt/utmp/codeblocks/usr/lib/liballegro_audio.so.5.1.8 0x7800 d [.] read_to_mixer_linear_float_32
5.98% SJKTdebug /usr/lib/libsrv_um.so.1.4.14.2616 0x202c d [.] PVRSRVWaitus
5.10% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x5434 d [.] mdct_backward
3.86% SJKTdebug /mnt/utmp/codeblocks/usr/lib/liballegro_audio.so.5.1.8 0x5e54 d [.] _al_kcm_mixer_read
3.38% SJKTdebug /lib/libc-2.9.so 0x6f300 d [.] memcpy
2.76% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbisfile.so.3.3.6 0x6c98 d [.] ov_read_filter
2.70% SJKTdebug /usr/lib/libasound.so.2.0.0 0x1d3c8 d [.] 0x1d3c8
2.69% SJKTdebug [kernel.kallsyms] 0xc0050618 k [k] do_sys_times
2.54% SJKTdebug /lib/libm-2.9.so 0x15da0 d [.] floorl
2.49% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0xc954 d [.] vorbis_synthesis_blockin
2.04% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libpng14.so.14.12.0 0xa2c0 d [.] png_read_filter_row
1.83% SJKTdebug [kernel.kallsyms] 0xc0201ee0 k [k] __memzero
1.70% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x1da18 d [.] vorbis_book_decodevv_add
1.60% SJKTdebug /mnt/utmp/codeblocks/usr/lib/liballegro_image.so.5.1.8 0x5504 d [.] really_load_png
1.34% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x1b2c0 d [.] mapping0_inverse
1.26% SJKTdebug /mnt/utmp/codeblocks/usr/lib/libvorbis.so.0.4.7 0x161bc d [.] floor1_inverse2
None of it is in my code, and the rendering isn't exactly complicated with less than 20 elements on the screen at all times (well, depending on how Allegro draws text I guess).
I'm not exactly sure what I can do to improve the performance. Does anybody have any ideas what I can look at?