June 28, 2022, 01:52:13 pm

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]

Author Topic: fast.gml (makes dedicated servers fast, especially WINE)  (Read 1621 times)

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
fast.gml (makes dedicated servers fast, especially WINE)
« on: January 11, 2016, 06:22:44 pm »



GG2 runs very slowly in WINE. What if you want to host with it?

Solution: fast.gml! This plugin makes all objects, including the entire UI, invisible. This makes the game run at a smooth 30fps... but unplayable. So only use this for server hosting.


// FAST.GML  Andrea ([url=https://ajf.me]https://ajf.me[/url]) 2016
// gotta go fast
object_event_add(RateControllerev_stepev_step_begin'
    window_set_caption(string(fps) + " FPS");
    room_caption = string(fps) + " FPS";
'
);

object_event_add(PlayerControlev_create0'
    alarm[6] = 10;
'
);

object_event_add(PlayerControlev_alarm6'
    with (all) visible = 0;

    alarm[6] = 10;
'
);
« Last Edit: January 11, 2016, 06:24:24 pm by ajf »
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4904
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
    • arcticland
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

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

Saniblues

  • Onion Knight
  • Administrator
  • *****
  • Karma: -1305
  • Offline Offline
  • Posts: 12416
Re: fast.gml (makes dedicated servers fast, especially WINE)
« Reply #3 on: January 13, 2016, 07:49:05 am »

You know, if we scrapped Plugin support and stopped piggybacking on string_execute, we could just port the game to Studio and make it *really* easy to run in WINE.
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
I'm bored out of my skull, Lets play a different game!
Lets take a visit down below And cast the world in flames!

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: fast.gml (makes dedicated servers fast, especially WINE)
« Reply #4 on: January 13, 2016, 10:34:34 am »

I can't even run undertale in wine
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

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: fast.gml (makes dedicated servers fast, especially WINE)
« Reply #5 on: January 15, 2016, 06:05:26 am »

where the fuck was this shit when i hosting test server on my now broken circa 2006 desktop

Might host 24/7 again if i can minimize the game to systray and pretend it doesn't exist as hard as btw does
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5770
Re: fast.gml (makes dedicated servers fast, especially WINE)
« Reply #6 on: January 15, 2016, 07:37:55 am »

where the fuck was this shit when i hosting test server on my now broken circa 2006 desktop

Might host 24/7 again if i can minimize the game to systray and pretend it doesn't exist as hard as btw does
Vinmod had that feature, see if you can port it from there.

MrRatermat

  • Junior Member
  • **
  • Karma: 7
  • Offline Offline
  • Posts: 179
  • PLUGINS PLUGINS PLUGINS!
    • NO TRUE SCOTSMAN WOULD PLAY GG2 WITHOUT PLUGINS
Re: fast.gml (makes dedicated servers fast, especially WINE)
« Reply #7 on: January 23, 2016, 08:14:07 pm »

http://www.ganggarrison.com/forums/index.php?topic=35815.msg1239881#msg1239881

http://www.ganggarrison.com/forums/index.php?topic=35815.msg1240414#msg1240414
There's also view_visible[0] = 0; as it turns out, though I don't know if that actually disables drawing.
All draw functions do write to the primary view surface iirc, but if view_visible is disabled, the surface won't be sent to the GPU.
Logged
Pages: [1]
 

Page created in 0.041 seconds with 37 queries.