Author Topic: eXtreme 2.7: Optimizing Restore Points  (Read 156 times)

Offline {NADF}Geronimo

  • Rank: Private
  • *
  • Posts: 65
eXtreme 2.7: Optimizing Restore Points
« on: July 16, 2011, 10:25:04 am »
Hi Pat!

I suggest to optimize the handling of the "Restore Player points".

Code: [Select]
File: _ex_clientcontrol.gsc
// restore points, kills, deaths and bonus if rejoining during grace period
if(level.ex_scorememory && level extreme\_ex_memory::getScoreMemory(self.name))

The restore of points is only for a current map. Instead of using "file-operations" I would suggest to save the data in a level-array.
So you can still getting the information for each player on a current map.

Just a quick thought to it :)

Regards,
Geronimo

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: eXtreme 2.7: Optimizing Restore Points
« Reply #1 on: July 16, 2011, 11:21:21 am »
This was done in anticipation of a personal statistics system. It doesn't make sense at the moment, but it doesn't seem to hurt either. All memory settings is read from file once. It doesn't do subsequent file operations for every memory call you see in the code.

Offline {NADF}Geronimo

  • Rank: Private
  • *
  • Posts: 65
Re: eXtreme 2.7: Optimizing Restore Points
« Reply #2 on: July 16, 2011, 12:08:49 pm »
It was just an idea, no big deal. It would be just a very very small optimizing. It's ofc ok, how it is.