The Gang Garrison 2 Forum
May 25, 2013, 04:06:46 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: 1
  Print  
Author Topic: Loading Resources externally to improve performance  (Read 406 times)
♫Sani Sani Disco♫
Onion Knight
******
Offline Offline

Posts: 10508


yo let's suck face and listen to rap music


WWW
« on: January 08, 2012, 07:55:50 pm »

So one reason the game is slow is that it's in Game Maker.

Another notable reason is that everything is precached and the game is bloated. We can solve both those problems at the same time if we keep only the essentials in the game (Like ctf mode and game-essential objects and scripts) to make it a little easier on the game. Also it can still stay bloated.

Or at least the sound files those are huge and shitty
« Last Edit: January 08, 2012, 08:05:07 pm by ♫Sani♫ » Logged

Quote from: mop
Quote from: MR MAGN3TIC
I don't like it.  Nah
Oh, well, you might as well pack up and stop now, because he doesn't like it
Asdf64: "ultros turned me on" - sani 2013
Isumi
Jr. Member
**
Offline Offline

Posts: 78

Vote okapi


« Reply #1 on: January 08, 2012, 08:05:20 pm »

so keep the essentials inside the game but make the less important stuff external so reduce lag, if it reduces lag i dont see why not
Logged

♫Sani Sani Disco♫
Onion Knight
******
Offline Offline

Posts: 10508


yo let's suck face and listen to rap music


WWW
« Reply #2 on: January 08, 2012, 08:06:46 pm »

The biggest problem is that it's a long and tedious process.
Logged

Quote from: mop
Quote from: MR MAGN3TIC
I don't like it.  Nah
Oh, well, you might as well pack up and stop now, because he doesn't like it
Asdf64: "ultros turned me on" - sani 2013
Isumi
Jr. Member
**
Offline Offline

Posts: 78

Vote okapi


« Reply #3 on: January 08, 2012, 08:07:51 pm »

then this probably isnt going to happen considering how lazy every one here is  z7
Logged

NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #4 on: January 08, 2012, 08:41:46 pm »

Externaly loading through Game Maker's notoriously slow parser isn't going to do much other than make map switching and boot up times much longer

That being said, its rather simple to dump all the materials (backgrounds , sounds, and sprites) to an external folder and load them on the fly, but considering the fact that you need nearly all recourses anyways other than external maps, which are dynamically unloaded and reloaded between maps anyways, I don't really see the reasoning behind that

And no that won't boost framerates. I don't even see how that logically boosts framerates
Logged



[im
Humble Master
Hero Member
*****
Offline Offline

Posts: 1284


Maker of Drakora


« Reply #5 on: January 08, 2012, 09:20:16 pm »

Don't know if this would work. What if you put all the sound and sprites and whatnot into a plugin that then loaded the resources onto GG2 as needed? We already have the programing for Plugins so it wouldn't need an exessive amount of modifications.
Logged

Finally returned
NAGN
Developer
******
Offline Offline

Posts: 16895


Yeah so now I have an idea


« Reply #6 on: January 08, 2012, 09:24:52 pm »

that would actually make it even slower, because parsing gml into gml is reallly really slow, from the actual importing feature being slow and frame locked as well

not only that but there's no reason to do so anyways. The only problem is that GG2 takes up an excessive amount of memory, but that wouldn't cause a decrease of speed, and even that wouldn't solve it considering mostly everything has to be preloaded anyways
Logged



[im
Pages: 1
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.061 seconds with 19 queries.