www.nonsecta.com » Blog Archive » Project T.I.M. Optimistic Optimization
March 04, 2008

Project T.I.M. Optimistic Optimization

What follows is great news ( at least it is for me and anyone wanting this game to be great lol ), I have managed to optimize the code heavily, we’re getting double the framerate now, and in some places triple ( no joke ).

GP2X OutPut
[root@gp2x TIM]$./tim-*1521.gpe
SDL_GP2X: CreateDevice
SDL_GP2X: VideoInit
SDL_GP2X: Physical screen = 320×240 (ilace = 0)
SDL_GP2X: Looking for a mouse
Last mouse mode: 0×0
Using PS2 mouse
SDL_GP2X: Creating cursor 16×16
SDL_GP2X: Allocated WMcursor @ 0×105908 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_SYS_JoystickInit
FONT : data/images/main/whitefont_small.bmp
SHIP : data/images/ships/Alphanian/falcon
BG : data/images/backgrounds/starfield-green-300.bmp
FG : data/images/overlays/starfield-top-300.bmp
TLS TOP : data/images/tilesets/rocky0/level-top.bmp
TLS BOT : data/images/tilesets/rocky0/level-bottom.bmp
ENEMY  : data/images/ships/Alphanian/ships
Loading Intro BG : data/images/presentations/Alpha-I.bmp
Intro BG : data/images/presentations/Alpha-I.bmp
StarMenu BG : data/images/backgrounds/intro-outro/lunarflare-title.bmp
StarMenu FG : data/images/backgrounds/intro-outro/lunarflare_ovl.bmp
Station : data/images/stations/station-00.bmp
Items: ,Water,Genes,Alcohol,Astro Weed,Electronics,Weapons,Coal,Gas,Gold,Meat

Items: Genes
Items: Alcohol
Items: Astro Weed
Items: Electronics
Items: Weapons
Items: Coal
Items: Gas
Items: Gold
Items: Meat

Item Prices: 10,15,60,300,100,250,30,50,200,50

Item Price: 10
Item Price: 15
Item Price: 60
Item Price: 300
Item Price: 100
Item Price: 250
Item Price: 30
Item Price: 50
Item Price: 200
Item Price: 50

XSYSTEM : Alpha I
STATIONS : 1
Station Type: 0
Station X: 2012.000000
Station Y : 100.000000
JumpGate X : 3213.000000
JumpGate Y : 50.000000
ENEMY COUNT : 15

SDL_GP2X: ListModes
SDL_GP2X: Setting video mode 320×240 16 bpp, flags=C0000001
SDL_GP2X: FreeHWSurfaces
SDL_GP2X: InitHWSurfaces 0×40455000, 4931584
SDL_GP2X: Screen bucket 0x104e8c
SDL_GP2X: First free bucket 0x105d68 (size = 4931584)
SDL_GP2X: Creating cursor 16×16
SDL_GP2X: Allocated WMcursor @ 0×105898 (32)
SDL_GP2X: SurfaceManager allocating 256 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4931328 bytes @ 0x1058b0
SDL_GP2X: SurfaceManager allocated 256 bytes at 0×40455000
SDL_GP2X: AllocHWSurface 0×106040
SDL_GP2X: SurfaceManager allocating 88880 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4842448 bytes @ 0x1058e8
SDL_GP2X: SurfaceManager allocated 88880 bytes at 0×40455100
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x105df0
SDL_GP2X: SurfaceManager allocating 375844 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4466604 bytes @ 0x105e60
SDL_GP2X: SurfaceManager allocated 375844 bytes at 0x4046ac30
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1130d8
SDL_GP2X: SurfaceManager allocating 375844 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 4090760 bytes @ 0x105eb0
SDL_GP2X: SurfaceManager allocated 375844 bytes at 0x404c6854
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×113170
SDL_GP2X: SurfaceManager allocating 1165636 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 2925124 bytes @ 0x1131e0
SDL_GP2X: SurfaceManager allocated 1165636 bytes at 0×40522478
SDL_GP2X: Allocated

SDL_GP2X: AllocHWSurface 0x1137c8
SDL_GP2X: SurfaceManager allocating 960000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 1965124 bytes @ 0×113838
SDL_GP2X: SurfaceManager allocated 960000 bytes at 0x4063edbc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x113d50
SDL_GP2X: SurfaceManager allocating 153600 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 1811524 bytes @ 0x113dc0
SDL_GP2X: SurfaceManager allocated 153600 bytes at 0x407293bc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1270e8
SDL_GP2X: SurfaceManager allocating 384000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 1427524 bytes @ 0×127158
SDL_GP2X: SurfaceManager allocated 384000 bytes at 0x4074ebbc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×127670
SDL_GP2X: SurfaceManager allocating 153600 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 1273924 bytes @ 0x1276e0
SDL_GP2X: SurfaceManager allocated 153600 bytes at 0x407ac7bc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x13aa08
SDL_GP2X: SurfaceManager allocating 384000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 889924 bytes @ 0x13aa78
SDL_GP2X: SurfaceManager allocated 384000 bytes at 0x407d1fbc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x13af90
SDL_GP2X: SurfaceManager allocating 512000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 377924 bytes @ 0x13b000
SDL_GP2X: SurfaceManager allocated 512000 bytes at 0x4082fbbc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x13b540
SDL_GP2X: SurfaceManager allocating 843640 bytes
SDL_GP2X: AllocHWSurface 0x13bac8
SDL_GP2X: SurfaceManager allocating 843640 bytes
SDL_GP2X: AllocHWSurface 0x13c040
SDL_GP2X: SurfaceManager allocating 8960 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 368964 bytes @ 0x13bc18
SDL_GP2X: SurfaceManager allocated 8960 bytes at 0x408acbbc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x13d740
SDL_GP2X: SurfaceManager allocating 5876 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 363088 bytes @ 0x13d7b0
SDL_GP2X: SurfaceManager allocated 5876 bytes at 0x408aeebc
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x13e850
SDL_GP2X: SurfaceManager allocating 5876 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 357212 bytes @ 0x13e8c0
SDL_GP2X: SurfaceManager allocated 5876 bytes at 0x408b05b0
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x13f960
SDL_GP2X: SurfaceManager allocating 20000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 337212 bytes @ 0x13f9d0
SDL_GP2X: SurfaceManager allocated 20000 bytes at 0x408b1ca4
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×142600
SDL_GP2X: SurfaceManager allocating 20000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 317212 bytes @ 0×142670
SDL_GP2X: SurfaceManager allocated 20000 bytes at 0x408b6ac4
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1452a0
SDL_GP2X: SurfaceManager allocating 4000 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 313212 bytes @ 0×145310
SDL_GP2X: SurfaceManager allocated 4000 bytes at 0x408bb8e4
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×146000
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 222012 bytes @ 0×146070
SDL_GP2X: SurfaceManager allocated 91200 bytes at 0x408bc884
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1517b0
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 130812 bytes @ 0×151820
SDL_GP2X: SurfaceManager allocated 91200 bytes at 0x408d2cc4
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x15cf60
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 39612 bytes @ 0x15cfd0
SDL_GP2X: SurfaceManager allocated 91200 bytes at 0x408e9104
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×168710
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x18a308
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x1abef0
SDL_GP2X: SurfaceManager allocating 1664 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 37948 bytes @ 0x1abf30
SDL_GP2X: SurfaceManager allocated 1664 bytes at 0x408ff544
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1aca28
SDL_GP2X: SurfaceManager allocating 572 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 37376 bytes @ 0x1aca98
SDL_GP2X: SurfaceManager allocated 572 bytes at 0x408ffbc4
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1ad0e0
SDL_GP2X: SurfaceManager allocating 8008 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 29368 bytes @ 0x1acb78
SDL_GP2X: SurfaceManager allocated 8008 bytes at 0x408ffe00
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1ae770
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x1d0358
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x1f1f40
SDL_GP2X: SurfaceManager allocating 480 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 28888 bytes @ 0x1f1f80
SDL_GP2X: SurfaceManager allocated 480 bytes at 0x40901d48
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1f25b0
SDL_GP2X: SurfaceManager allocating 480 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 28408 bytes @ 0x1f2620
SDL_GP2X: SurfaceManager allocated 480 bytes at 0x40901f28
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0x1f2c20
SDL_GP2X: SurfaceManager allocating 153600 bytes
SDL_GP2X: AllocHWSurface 0x205da0
SDL_GP2X: SurfaceManager allocating 17424 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 10984 bytes @ 0x205de0
SDL_GP2X: SurfaceManager allocated 17424 bytes at 0×40902108
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×208630
SDL_GP2X: SurfaceManager allocating 1664 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 9320 bytes @ 0×208670
SDL_GP2X: SurfaceManager allocated 1664 bytes at 0×40906518
SDL_GP2X: Allocated
SDL_GP2X: AllocHWSurface 0×209168
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x22ad50
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x22ae80
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x24ca58
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0x26e630
SDL_GP2X: SurfaceManager allocating 91200 bytes
SDL_GP2X: AllocHWSurface 0×290208
SDL_GP2X: SurfaceManager allocating 63732 bytes
SDL_GP2X: AllocHWSurface 0x2b1de0
SDL_GP2X: SurfaceManager allocating 10000 bytes
SDL_GP2X: AllocHWSurface 0x2c98f8
SDL_GP2X: SurfaceManager allocating 19140 bytes
SDL_GP2X: AllocHWSurface 0x2d4f50
SDL_GP2X: SurfaceManager allocating 1664 bytes
SDL_GP2X: SurfaceManager adding new free bucket of 7656 bytes @ 0x2c9a48
SDL_GP2X: SurfaceManager allocated 1664 bytes at 0x40906b98
SDL_GP2X: Allocated

ETYPE : 2
ETYPE : 1
ETYPE : 0
ETYPE : 1
ETYPE : 0
ETYPE : 2
ETYPE : 1
ETYPE : 0
ETYPE : 2
ETYPE : 1
ETYPE : 0
ETYPE : 2
ETYPE : 2
ETYPE : 0
ETYPE : 1
ETYPE : 0

START MENU:
FPS = 0 — Delta Time = 1082383155
FPS = 23 — Delta Time = 1074790400
FPS = 25 — Delta Time = 1074790400
FPS = 25 — Delta Time = 1074816614
FPS = 25 — Delta Time = 1074790400
FPS = 25 — Delta Time = 1074790400
FPS = 25 — Delta Time = 1074816614
FPS = 25 — Delta Time = 1074790400
FPS = 25 — Delta Time = 1074816614
INTRO TEXT : Alpha I is a quiet system with a load of history. Over 400 years ago it’s entire population was exterminated by an unknown alien culture. The system has undergone vast changes since this happened and has eventually ended up being colonized by the well known Mingus tribe. The Mingus Tribe have managed to make it popular thanks to their various tourist resorts and casinos, mostly placed on the beautiful planet Alpharius, visitors to planet Alpharius have always spoken about the beauty of it’s blue skies and rocky formations and the friendliness of it’s native inhabitants.
FPS = 47 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072798105
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072798105
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
GAME START
FPS = 84 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 98 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1073741824
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072798105
FPS = 98 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 99 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 100 — Delta Time = 1072693248
FPS = 98 — Delta Time = 1072693248

So, there you go, don’t think for a second that I’ve stopped my work on this soon-to-be great game :)

Add A Comment

You must be logged in to post a comment.