Re: [XASECO2] Tracks cache

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
SPR1NTER
pedestrian
pedestrian
Posts: 9
Joined: 27 May 2011 18:28
Owned TM-games: TMU

Re: [XASECO2] Tracks cache

Post by SPR1NTER » 11 Mar 2013 18:31

Hey, this is going off topic, but its no secret that loading times of Xaseco have suffered from 1.14ish onwards. Surely there is a more efficient way to cache maps? I don't fully understand the technicalities, but could you only cache the maps if on the previous map a map was added? (deleted would just error anywhos) or on first map/boot up?

Again, going further off topic... but I would love some tips or options to optimize Xaseco, such as logs disabled and things along those lines. Is there any documentation out there on that?

Again, sorry for going off topic a bit.
Last edited by Xymph on 11 Mar 2013 19:51, edited 1 time in total.
Reason: Update subject

Xymph
Pit Crew
Pit Crew
Posts: 5724
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [XASECO2] Tracks cache

Post by Xymph » 11 Mar 2013 19:50

SPR1NTER wrote:Hey, this is going off topic, but its no secret that loading times of Xaseco have suffered from 1.14ish onwards. Surely there is a more efficient way to cache maps? I don't fully understand the technicalities, but could you only cache the maps if on the previous map a map was added? (deleted would just error anywhos) or on first map/boot up?
The cache is refreshed when the track list changes (onChallengeListModified event) but also when the tracks switches to the next one, because admins can also use an external tool (e.g. ServerMania) to manage the server and its track list. Perhaps the whole process could be optimized further, but I simply haven't spent more time on it since the initial implementation.
SPR1NTER wrote:Again, going further off topic... but I would love some tips or options to optimize Xaseco, such as logs disabled and things along those lines. Is there any documentation out there on that?
You mean after you've studied the entire http://docs.xaseco.org/ section? :wink: No, there's not much more than that, but it should be enough.
SPR1NTER wrote:Again, sorry for going off topic a bit.
Topic split off.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO2] Tracks cache

Post by undef.de » 11 Mar 2013 21:16

Xymph wrote: [...] when the track list changes (onChallengeListModified event) but also when [...]
A little correction as we are talking about XAseco2:

[...] when the map list changes (onMapListModified event) but also when [...]
:1
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

Xymph
Pit Crew
Pit Crew
Posts: 5724
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [XASECO2] Tracks cache

Post by Xymph » 11 Mar 2013 22:32

undef.de wrote:
Xymph wrote: [...] when the track list changes (onChallengeListModified event) but also when [...]
A little correction as we are talking about XAseco2:

[...] when the map list changes (onMapListModified event) but also when [...]
Irrelevant, same caching system is in both. :P
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

Re: Re: [XASECO2] Tracks cache

Post by kremsy » 28 Mar 2013 12:18

Xymph where do you clear the cache on the (onChallengeListModified event)?

In MPAseco I made it temporary in the rasp funcs with simple,
Aseco::registerEvent('onMapListModified', 'initMapsCache');

But as you said with many maps its not very good performed maybe.
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net

Xymph
Pit Crew
Pit Crew
Posts: 5724
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: Re: [XASECO2] Tracks cache

Post by Xymph » 28 Mar 2013 19:05

kremsy wrote:where do you clear the cache on the (onChallengeListModified event)?
rasp.funcs.php, but I forgot to update the event name, it should be onMapListModified indeed.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

Re: [XASECO2] Tracks cache

Post by kremsy » 29 Mar 2013 00:23

Thank you, now I see it.
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net

Post Reply