View Full Version : Loading libarys .. cutting down lagg :S
Joppe
April 1st, 2005, 11:30 AM
Okay .. So here's the deal .. Im making an platformer game called Jimmy In the Dreamland .. But when i test drive it , it can take up to 7 minutes before it starts ( test drive = ctrl + enter ) And i dont like that becouse it laggs down my whole computer .. and the other day i tought .. Hey! why wont i have the AS in a AS file .. and i did that and tested again .. but it still takes a very very long time to load .. and is it possible to just load in the items in the libary or something like that to cut down this problem ? any other ideas ?
- Joppe
SeiferTim
April 1st, 2005, 01:50 PM
Is this intended to be a web-based game? Or something that players would need to install and run off their PCs?
Templarian
April 1st, 2005, 02:48 PM
7min? That seems a little high whats the total file size for this .swf?
Joppe
April 1st, 2005, 02:57 PM
The file size of the swf is 67 kb.. i dont know really if it seven minutes but its around that .. Its very weird .. i tought it should load faster when it loads the as script with one line .. but it dont .. so it must be the libary
SeiferTim
April 1st, 2005, 04:37 PM
how big is the library?
Joppe
April 1st, 2005, 04:50 PM
Well its big.. much files and stuff
SeiferTim
April 1st, 2005, 05:41 PM
Well, I would suggest a few things... if you are really intending on using the library that seems to be giving you trouble, I would suggest making your game be for local use... as in the player would have to install and run the game from their Hard Drive - not the net. If this is not an option, then make sure your players know ahead of time that there could be a long wait while it loads, and perhaps make a small, simple mini-game for them to play on the loading screen... other than that, I don't know what else to suggest other than to lose that big friggin library...
Templarian
April 1st, 2005, 05:52 PM
uhh... wait a second is your World made on load?? or is pre-made?
dumb question but may explain something.
Sirisian
April 1st, 2005, 06:34 PM
hey you might've made a memory leak, run ur .swf and if your using XP check the amound of ram it uses. to see the ram amount push ctrl+alt+del and click on the procceses tab and scoll down to see the program and the ram amount. How much does it use? If it keeps going up then u have a problem.
Blackspirit
April 2nd, 2005, 05:45 AM
Your swf file is only 67k??? It might be more to do with an error in a for loop, what kind of comp you running?
You can always get rid of stuff in the library your not using by deleting the unused items.
You can select them all by clicking the button in the top right of the library window, and then scrolling down to "select unused items", sometimes you'll be suprised that amount of old tween graphics you can delete :) Of course keep a backup before goind on a deleting spree.
Joppe
April 2nd, 2005, 04:31 PM
@ SeiferTim , how would i make it so the player installs the game?
@ Sirisian , Well my ram sucks and i need to buy some more ram...
@ Blackspirit , Okay i will delete some unused stuff :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.