# HG changeset patch # User gongo@localhost.localdomain # Date 1231226317 -32400 # Node ID 06cdf8baa9899a3c1b21310112fca21d44814312 # Parent 063e546eca1fd7be195e9201774483125e145083 fix diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Makefile.def --- a/TaskManager/Makefile.def Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Makefile.def Tue Jan 06 16:18:37 2009 +0900 @@ -25,7 +25,7 @@ IMPL_CELL_OBJS = $(IMPL_CELL_SRCS:.cc=.o) CC = g++ -CFLAGS = -O0 -Wall `sdl-config --cflags` -g +CFLAGS = -O9 -Wall `sdl-config --cflags` -g LIBS = INCLUDE = -I../include/TaskManager \ No newline at end of file diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/Makefile.def --- a/TaskManager/Test/test_render/Makefile.def Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/Makefile.def Tue Jan 06 16:18:37 2009 +0900 @@ -3,10 +3,10 @@ # include/library path # ex: macosx #CERIUM = /Users/gongo/Source/Concurrency/Game_project/Cerium -CERIUM = /Users/gongo/Source/hg/Cerium +#CERIUM = /Users/gongo/Source/hg/Cerium # ex: linux/ps3 -#CERIUM = /home/gongo/Cerium +CERIUM = /home/gongo/Cerium #CERIUM = /Users/tkaito/hg/Game/Cerium #CERIUM = ../../.. diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/Tapestry.h --- a/TaskManager/Test/test_render/Tapestry.h Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/Tapestry.h Tue Jan 06 16:18:37 2009 +0900 @@ -86,7 +86,7 @@ int pad[3]; } Tile, *TilePtr; -#define MAX_TILE 128 +#define MAX_TILE 64 /** * TileList 中の Tile の追い出しは、現在 FIFO で実装している diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/spe/DrawSpan.cpp --- a/TaskManager/Test/test_render/spe/DrawSpan.cpp Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpan.cpp Tue Jan 06 16:18:37 2009 +0900 @@ -283,12 +283,12 @@ */ if (!isAvailableTile(tex_addr)) { spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, 0); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, 0); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -351,6 +351,7 @@ FINISH: free(free_spack); free(linebuf); + free(zRow); return 0; } diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/spe/DrawSpanRenew.cpp --- a/TaskManager/Test/test_render/spe/DrawSpanRenew.cpp Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/spe/DrawSpanRenew.cpp Tue Jan 06 16:18:37 2009 +0900 @@ -114,12 +114,12 @@ */ if (!isAvailableTile(tex_addr)) { spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, 0); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, 0); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -161,14 +161,13 @@ tex_localy = tex_ypos % TEXTURE_SPLIT_PIXEL; if (!isAvailableTile(tex_addr)) { - printf("empty\n"); spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, j); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, j); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -189,9 +188,12 @@ FINISH: - free(spack); free(next_spack); free(linebuf); + free(zRow); + + // Renew allocate 줿ΤʤΤǡ free + free(spack); return 0; } diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/spe/Makefile --- a/TaskManager/Test/test_render/spe/Makefile Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/spe/Makefile Tue Jan 06 16:18:37 2009 +0900 @@ -8,7 +8,7 @@ OBJS = $(SRCS:.cpp=.o) CC = spu-g++ -CFLAGS = -O9 -Wall -g -fno-exceptions -fno-rtti #-DDEBUG +CFLAGS = -O0 -Wall -g -fno-exceptions -fno-rtti #-DDEBUG INCLUDE = -I$(CERIUM)/include/TaskManager -I. -I.. LIBS = -L$(CERIUM)/TaskManager -lspemanager diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/task/DrawSpan.cpp --- a/TaskManager/Test/test_render/task/DrawSpan.cpp Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/task/DrawSpan.cpp Tue Jan 06 16:18:37 2009 +0900 @@ -283,12 +283,12 @@ */ if (!isAvailableTile(tex_addr)) { spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, 0); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, 0); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -351,6 +351,7 @@ FINISH: free(free_spack); free(linebuf); + free(zRow); return 0; } diff -r 063e546eca1f -r 06cdf8baa989 TaskManager/Test/test_render/task/DrawSpanRenew.cpp --- a/TaskManager/Test/test_render/task/DrawSpanRenew.cpp Tue Jan 06 15:40:15 2009 +0900 +++ b/TaskManager/Test/test_render/task/DrawSpanRenew.cpp Tue Jan 06 16:18:37 2009 +0900 @@ -114,12 +114,12 @@ */ if (!isAvailableTile(tex_addr)) { spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, 0); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, 0); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -161,14 +161,13 @@ tex_localy = tex_ypos % TEXTURE_SPLIT_PIXEL; if (!isAvailableTile(tex_addr)) { - printf("empty\n"); spack->info.start = t; - //set_rgb(tex_addr); - set_rgbs(tex_addr, - getTile(span->tex_width-1, tex_ypos, - span->tex_width, span->tex_addr)); - reboot(spack, j); - goto FINISH; + set_rgb(tex_addr); + //set_rgbs(tex_addr, + //getTile(span->tex_width-1, tex_ypos, + //span->tex_width, span->tex_addr)); + //reboot(spack, j); + //goto FINISH; } rgb = get_rgb(tex_localx, tex_localy, tex_addr); @@ -189,9 +188,12 @@ FINISH: - free(spack); free(next_spack); free(linebuf); + free(zRow); + + // Renew allocate 줿ΤʤΤǡ free + free(spack); return 0; }