November 21, 2024, 09:29:03 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Pages: [1] 2

Author Topic: 2.6.8 Performance Hotfix  (Read 15198 times)

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
2.6.8 Performance Hotfix
« on: October 12, 2013, 10:51:00 am »

People with old CPUs have been experiencing performance problems since the recent update binge, even last one, which improved performance dramatically.

This is because the movement solver was changed (the code for figuring out character movement when the run into things) to avoid glitching out when you hit doors at the same time as you walk up stairs or hit the ground). I'm not going to bother to explain the technical details. The original overhaul was extremely buggy, and had performance problems, so I decided to go with the obvious solution (other devs suggested against it in the past) and use the old collision system in the new way. Basically, putting the code that GG2 used to move characters around forever, in the place where I had put the overhauled code, and tweaking whatever minor things about it were necessary to make it work.

This hotfix makes the current system only override GM's built in movement only when it needs to instead of every single frame.

Download: https://dl.dropboxusercontent.com/u/1811521/Gang%20Garrison%202%202.6.8%20Performance%20Hotfix.exe

Because this is a hotfix meant to be compatible with the current release, I can't do things like fix setupgates. We're gathering up fixes like that for a bigger bugfix release to avoid shotgunning one after another again.
« Last Edit: October 12, 2013, 02:46:29 pm by Phantom Brave »
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

Friendly Holocaust

  • Guest
Re: 2.6.8 Performance Hotfix
« Reply #1 on: October 12, 2013, 02:26:33 pm »

Good job, it works.
Logged

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4888
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
Re: 2.6.8 Performance Hotfix
« Reply #2 on: October 13, 2013, 01:40:18 am »

can you upload the source?
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: 2.6.8 Performance Hotfix
« Reply #3 on: October 13, 2013, 08:31:03 am »

11:23 AM - Rabbit: replace line 5 of Character Step with
11:23 AM - Rabbit: if(!place_free(x+hspeed, y+vspeed))
    characterHitObstacle();
11:23 AM - Rabbit: these two
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

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4888
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
Re: 2.6.8 Performance Hotfix
« Reply #4 on: October 13, 2013, 12:54:46 pm »

11:23 AM - Rabbit: replace line 5 of Character Step with
11:23 AM - Rabbit: if(!place_free(x+hspeed, y+vspeed))
    characterHitObstacle();
11:23 AM - Rabbit: these two
oh cool
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4888
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
Re: 2.6.8 Performance Hotfix
« Reply #5 on: October 13, 2013, 03:55:36 pm »

wait...so why isnt this just a simple plugin?

Code: [Select]
object_event_clear(Character,ev_step,ev_step_normal);
object_event_add(Character,ev_step,ev_step_normal,"
    if(!place_free(x+hspeed, y+vspeed))
    characterHitObstacle()
");

EDIT: yep i derped and read line 5 as 5 lines
« Last Edit: October 14, 2013, 05:20:07 pm by Headless SharkMan »
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: 2.6.8 Performance Hotfix
« Reply #6 on: October 13, 2013, 03:58:49 pm »

1) That code doesn't work.
2) Why would I make something performance critical a plugin. :U
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

2D

  • Guest
Re: 2.6.8 Performance Hotfix
« Reply #7 on: October 14, 2013, 12:19:04 pm »

1) That code doesn't work.
2) Why would I make something performance critical a plugin. :U

It works fine for me. I haven't had much problem with stairs, but player platforms still hold me down as Pyro and Quote.
Logged

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: 2.6.8 Performance Hotfix
« Reply #8 on: October 14, 2013, 12:21:45 pm »

~*~THAT MEANS IT DOESN'T WORK, 2.6.8 ALREADY FIXED THAT BUG AND THIS PLUGIN PROBABLY REINTRODUCES IT~*~
« Last Edit: October 14, 2013, 12:23:44 pm by Phantom Brave »
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

2D

  • Guest
Re: 2.6.8 Performance Hotfix
« Reply #9 on: October 18, 2013, 08:11:36 am »

~*~THAT MEANS IT DOESN'T WORK, 2.6.8 ALREADY FIXED THAT BUG AND THIS PLUGIN PROBABLY REINTRODUCES IT~*~

(click to show/hide)

[/quote]
In addition, Quotes will fly strait out of RED spawn on the same map if the right key isn't held down.
Logged

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: 2.6.8 Performance Hotfix
« Reply #10 on: October 18, 2013, 11:34:34 am »

That's a different bug than the one the plugin reintroduces. This is a bug caused by undocumented GM behavior that affected the old collision code but not the perfect stuff. I figured out the solution already but it's not gamebreaking and it's caused by bad spawns which literally put the characters inside of the map.
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

2D

  • Guest
Re: 2.6.8 Performance Hotfix
« Reply #11 on: November 01, 2013, 10:57:12 am »

That's a different bug than the one the plugin reintroduces. This is a bug caused by undocumented GM behavior that affected the old collision code but not the perfect stuff. I figured out the solution already but it's not gamebreaking and it's caused by bad spawns which literally put the characters inside of the map.

How is it going to be fixed? It only effects   :quote::curly: on koth_corinth
Logged

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: 2.6.8 Performance Hotfix
« Reply #12 on: November 01, 2013, 11:00:00 am »

I already fixed it. In beta.
« Last Edit: November 01, 2013, 11:00:09 am by Phantom Brave »
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

2D

  • Guest
Re: 2.6.8 Performance Hotfix
« Reply #13 on: November 01, 2013, 11:55:45 am »

I already fixed it. In beta.
Great! Thanks.
Logged

\esc144aAroundTheWorld\esca

  • stinkier foot
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 2749
Re: 2.6.8 Performance Hotfix
« Reply #14 on: November 01, 2013, 11:57:24 am »

>2D pretending to be Oktoberfest
Logged
Pages: [1] 2
 

Page created in 0.028 seconds with 35 queries.