• Welcome to PiBoSo Official Forum. Please login or sign up.
 
April 16, 2024, 11:14:48 AM

News:

GP Bikes beta21c available! :)


Output plugin - EventDeinit function

Started by HornetMaX, October 16, 2015, 07:20:21 PM

Previous topic - Next topic

HornetMaX

@Piboso: it may be handy to have an EventDeinit function in the output plugin interface (just like for runs there are RunInit and RunDeinit).

MaX.

HornetMaX

Hmm, actually it would be more mandatory than handy. I have two options to decide when to allocate quads:

  • At TrackCenterline time: good, but then I have no way to deallocate them safely (except at the next call of TrackCenterline).
  • At RunInit time: this is OK as I can deallocate them at RunDeinit time, but neither of the two is called if an user joins an even and goes straight to "replay" mode (to watch/broadcast the event).

It may depend on the following: is Draw (and RaceEvent and others) supposed to be called when watching a saved replay ? At the moment they are (in WRS beta7).

If they are not, then things are somehow simpler and an EventDeinit may not be necessary (even if I'd still tend to think it should be there).
But if they are, then we are missing something.

MaX.