Alice Community  

Go Back   Alice Community > Alice 2 > Share Objects

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old
meirs
Senior Member
 
meirs's Avatar
 
Status: Offline
Posts: 64
Join Date: Dec 2009
Location: Universe
Default 03-08-2010, 09:09 AM

Jediaction,
First, your game is very sophisticated and impressive!

The slowness has nothing to do with frame rate, which is something you cannot set in Alice anyway.

Far as I can tell, there are few things you can do to improve the game performance:

* You have many event handlers in the events area, of which some are ran every processing cycle to assert their condition. For example, an event checking the condition that a bullet is in a certain distance from a target should be avoided, since it only applies when you shoot the bullet! You have number of events handling bullets that way, and you should replace those with normal program logic (within methods).

* Also, in the events area, you have many 'while' events that are better handled in methods, from the same above considerations.

* You have tens of background static objects which should be merged into one scene object. Put all the trees, hills and lake (which contains many static objects of its own), dots, etc - that means anything not being moved, turned or with any 3D scene meaning - into one static scene object.

* Likewise, the program contains many dummy objects, which I suspect you've used only for editing the scene. You should delete any such unused objects. You will have a simple indication for objects being redundant: if that object is referenced from the application code, then when trying to delete it you'll get a "remove reference" warning.

The first two notes affect directly running time performance while the latter have mainly memory consumption implications.


Mama is an Alice On Steroids with YouTube uploader, 3d object creator, tutorial editor, and standalone support:
http://www.eytam.com/mama

Last edited by meirs; 03-08-2010 at 09:12 AM.
   
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.