Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Remove lagg.
Old
Watsamax1
Senior Member
 
Watsamax1's Avatar
 
Status: Offline
Posts: 155
Join Date: Aug 2009
Red face Remove lagg. - 08-02-2010, 01:05 PM

My RPG style game currently is about 130 mb's and it isnt getting smaller. Ive tried removing events, and making methods for everything. But not i still need collision that works fast, walking that doesn't lag somehow always messes up . And combat, and another world and a dungeon. so as you may see my game will be laggy then and i still need some building collision for a few buildings.

So any ideas on how to remove this lag will be appreciated.


___________________________________________________

Watsamax Industries
Games Produced for Watsamax Industries Inc. 2010
Watsamax Industries: New York
Watsamax@gmail.com
http://www.facebook.com/profile.php?id=100001253371874#!/profile.php?id=100001253371874&v=wall
http://www.youtube.com/user/Watsamax
___________________________________________________
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 08-02-2010, 03:09 PM

-Set objects that aren't visible (too far away, behind buildings, etc) to isShowing = false

-Use pauses in collision detection.

Loop infinity times
check for collision
wait .01 seconds

-Use png billboards instead of objects as boundaries (makes collision detection easier too)

-Avoid using simultaneous loops (if there's a collision that can't possibly happen while another one is happening, make sure they're not both running)

or better yet

-Make collision loops so they only run when necessary

Loop infinity times
if character is within 1 meter of building
collision detection
else
do nothing
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default 08-02-2010, 07:06 PM

In this case the lag is occuring because of all of the objects. It would probably help to make a fog and have the objects too deep in the fog just stop showing (but you will also have to have them reappear when you get closer).

Alice wasn't meant to handle all of those objects at once like other games can.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 577
Join Date: Nov 2008
Location: In the interwebs
Default 08-05-2010, 10:29 PM

Another awesome thing to do is set the camera clip distance to that of the fog far distance. This will make all objects beyond the fog un-rendered.


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
King Gamer(gorit)
Guest
 
Status:
Posts: n/a
Default 08-05-2010, 10:46 PM

Well, I just wanted to say That my oclusion culling will cut down lag from objects but I haven't started and would be hard to fit into somthing the big already.
   
Reply With Quote
Reply

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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.