January 26, 2022, 06:07:28 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2

Author Topic: why is garrison builder so slow  (Read 3816 times)

[KKK]Trigrar

  • President
  • *****
  • Karma: 821
  • Offline Offline
  • Posts: 2945
  • FEED ME!
why is garrison builder so slow
« on: December 28, 2009, 11:55:34 am »

seriously its gonna take about an hour for compiling half a normal sized map.
Logged
I liek cats

Ghostface

  • Guest
Re: why is garrison builder so slow
« Reply #1 on: December 28, 2009, 11:57:51 am »

Ask the laptop, the linux and windows vista.
Logged

[KKK]Trigrar

  • President
  • *****
  • Karma: 821
  • Offline Offline
  • Posts: 2945
  • FEED ME!
Re: why is garrison builder so slow
« Reply #2 on: December 28, 2009, 12:01:16 pm »

Ask the laptop, the linux and windows vista.
its not a laptop  :hehe:
Logged
I liek cats

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: why is garrison builder so slow
« Reply #3 on: December 28, 2009, 09:30:36 pm »

GAME MAKER 7
NOW WITH AN ULTRA BLOATED SCRIPT PROCESSOR
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

NAGN

  • Developer
  • ******
  • Karma: 146
  • Offline Offline
  • Posts: 16769
  • Yeah so now I have an idea
Re: why is garrison builder so slow
« Reply #4 on: December 28, 2009, 10:00:26 pm »

maor like all game maker exes are just a text document with a runner  :drool:
Logged

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: why is garrison builder so slow
« Reply #5 on: December 29, 2009, 12:36:08 am »

seriously its gonna take about an hour for compiling half a normal sized map.

It's my fault, and Game Maker's fault.  I've talked about this before, but basically I told Game Maker to scan every pixel of the image and pack all of those pixels into characters and put all those characters into a giant string.  It's slow because it's GML, but as the programmer I'm the one who made it do stuff it's not good at, so it's also my fault.
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: why is garrison builder so slow
« Reply #6 on: December 29, 2009, 02:46:17 am »

scan every pixel of the image and pack all of those pixels into characters and put all those characters into a giant string

Python :z5:
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: why is garrison builder so slow
« Reply #7 on: December 29, 2009, 03:46:15 am »

Woo, I just fixed it!  Turns out that Game Maker is really slow at reading colors off of a drawing surface.  It's very quick at drawing, but not reading.

I fixed the problem by converting the walkmask surface into a sprite and then doing collision detection on each pixel instead of reading colors.  Super-fast!  And it also shows that the string and math operations weren't the bottleneck.

I'll hopefully have an update out soon.  Gotta play around with the launchpad repo, getting things cleaned up.
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

skeleton dude

  • Guest
Re: why is garrison builder so slow
« Reply #8 on: December 29, 2009, 03:52:19 am »

fix the kill and frag boxes while your at it please
Logged

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: why is garrison builder so slow
« Reply #9 on: December 29, 2009, 04:16:46 am »

fix the kill and frag boxes while your at it please
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: why is garrison builder so slow
« Reply #10 on: December 29, 2009, 04:20:20 am »

I assume the kill and fragbox problem is discussed somewhere.  Link please?
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

skeleton dude

  • Guest
Re: why is garrison builder so slow
« Reply #11 on: December 29, 2009, 04:31:03 am »

I can't find the thread where it was discussed, but the kill and frag boxes's sprites in garrison builder are about twice the size they should be.
Logged

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Re: why is garrison builder so slow
« Reply #12 on: December 29, 2009, 04:34:39 am »

Ok, thanks.

EDIT: It's done, it'll be in the update.
« Last Edit: December 29, 2009, 04:53:18 am by cspotcode »
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

Rock

  • Seasoned Member
  • *****
  • Karma: 22
  • Offline Offline
  • Posts: 1794
  • Am I dead?
Re: why is garrison builder so slow
« Reply #13 on: December 29, 2009, 06:01:11 am »

And cspotcode, can you change the respawn room entity into no-build zone and change the size? It was also discussed.
Logged
Resident Oldfag

Bass

  • Guest
Re: why is garrison builder so slow
« Reply #14 on: December 29, 2009, 08:17:04 am »

And cspotcode, can you change the respawn room entity into no-build zone and change the size? It was also discussed.
What we can do is we can make separate masks for everything like water, respawn rooms, no build zones, frag zones, hurt zones, and it will save a shit ton of time.


Do you realize what this means? I doubt you do, so I'll explain it in a special lecture!
« Last Edit: December 29, 2009, 08:18:02 am by BassMakesPaste »
Logged
Pages: [1] 2
 

Page created in 0.041 seconds with 35 queries.