codertimt said:I agree with everyone that it looks slick. The smooth animations are great. However, I have concerns about performance. I downclocked my pc as far as I could(down to 800Mhz) and while switching categories, it pretty much pegged the cpu. The same with scrolling. Also taking up about 20MB of RAM in windows... Anyway, I know it's early on, but as I hadn't seen any mention of such items, I thought I'd bring it up.
Zoxc said:I just picked some of Sharp's sounds in his thread, just to have something for testing. Hopefully he'll make some more suitable ones.
Sound toggle and replacing should be no problem.
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
#leave blank to use normal compiler
CROSS_COMPILE =
+CROSS_BIN = /home/notaz/dev/pnd/libroot/bin/
CPP = $(CROSS_COMPILE)g++
LD = $(CROSS_COMPILE)ld
STRIP = $(CROSS_COMPILE)strip
-CFLAGS += -Wall `sdl-config --cflags` -I./Framework -O2
-LDFLAGS += -lSDL_ttf -lSDL_image -lSDL_mixer
+CFLAGS += -Wall `$(CROSS_BIN)sdl-config --cflags` -I./Framework -O2
TARGET = ./bin/scale
BUILDDIR = ./obj
@@ -14,12 +14,14 @@ ifeq ($(DEBUG), 1)
CFLAGS += -ggdb
endif
+LDFLAGS += -lSDL_ttf -lSDL_image -lSDL_mixer -lfreetype -lpng -lz
#activate static binaries with `STATIC=1 make`
ifeq ($(STATIC), 1)
-LDFLAGS += -static `sdl-config --static-libs`
+LDFLAGS += -static `$(CROSS_BIN)sdl-config --static-libs`
else
-LDFLAGS += `sdl-config --libs`
+LDFLAGS += `$(CROSS_BIN)sdl-config --libs`
endif
+LDFLAGS += -ldl
SRCS = $(wildcard *.cpp Framework/*.cpp)
@@ -31,7 +33,7 @@ objdir:
mkdir -p $(BUILDDIR)/Framework
$(TARGET): $(OBJS)
- $(CPP) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
+ $(CPP) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
ifneq ($(DEBUG), 1)
$(STRIP) $@
endif
notaz said:I've just tried it on the devboard, and it ran rather slow. The category switching animation only shows 3-4 frames, instead of maybe 50 it is showing on PC. It will definitely need optimized, hardware accelerated SDL port to be usable (I tried it on quickly compiled SDL with fbcon video driver). The optimized SDL is not yet available, and might only appear some time after Padora's release.
BTW I needed these changes to cross-compile and statically link successfully (-l order does matter):
Code:--- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ #leave blank to use normal compiler CROSS_COMPILE = +CROSS_BIN = /home/notaz/dev/pnd/libroot/bin/ CPP = $(CROSS_COMPILE)g++ LD = $(CROSS_COMPILE)ld STRIP = $(CROSS_COMPILE)strip -CFLAGS += -Wall `sdl-config --cflags` -I./Framework -O2 -LDFLAGS += -lSDL_ttf -lSDL_image -lSDL_mixer +CFLAGS += -Wall `$(CROSS_BIN)sdl-config --cflags` -I./Framework -O2 TARGET = ./bin/scale BUILDDIR = ./obj @@ -14,12 +14,14 @@ ifeq ($(DEBUG), 1) CFLAGS += -ggdb endif +LDFLAGS += -lSDL_ttf -lSDL_image -lSDL_mixer -lfreetype -lpng -lz #activate static binaries with `STATIC=1 make` ifeq ($(STATIC), 1) -LDFLAGS += -static `sdl-config --static-libs` +LDFLAGS += -static `$(CROSS_BIN)sdl-config --static-libs` else -LDFLAGS += `sdl-config --libs` +LDFLAGS += `$(CROSS_BIN)sdl-config --libs` endif +LDFLAGS += -ldl SRCS = $(wildcard *.cpp Framework/*.cpp) @@ -31,7 +33,7 @@ objdir: mkdir -p $(BUILDDIR)/Framework $(TARGET): $(OBJS) - $(CPP) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) + $(CPP) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) ifneq ($(DEBUG), 1) $(STRIP) $@ endif