Just a update on what's going on with MazPong (as if anyone was ineterested

)
Actually... The data storage is a mess. (and as always, it is the key of operation).
I've pondered this for a while, without getting any reasonable conclusion. Just to clarify how things have went to this point...
Firstly I started writing this game as a game to be played on one computer only. Hence I thought that graphical client drawing things, and engine calculating positions of balls and pads would reside in same process. Hence I thought of using C++ singleton for data storage.
Later I decided to make this a network based game, where independent server process would take care of calculating positions, and each client being own process accessing to this data via sockets. Hence the CPP singleton lost it's meaning.
I was thinking of creating a ring buffer, where server would update data continuously, and from what the clients could read it. But but... Why to use ring buffer? Do we need the old data anywhere? No. The current situation is only relevant thing.
So currently I am just going to create mutex protected global structs for data storage on server, and decide the storage format on client later. I may also change the server storage later, if globals seem like a bad idea.
I am now pondering the time calculation. I am tempted to go through an easy way, of having a 'tick process', which just increases a global tick number for every 10 millisec, and base the timing on that. Easy way to do this with decent accuracy, would be to make individual thread which just loops through sleep'N increase number procedure. However the implemetation of sleep may not be that accurate on non realtime machines... I am tempted to use SCHED_FIFo scheduling for this ticker process, which would make the accuracy decent enough. However that has it's own stability issues, and additionally requires running the server with root privileges... And I have no idea if SCHED_FIFo is implemented on windows... And who want's to run my neetwork pong as root? Any volunteers??

on the other hand, I am not expecting this pong to be ever run by anyone. (or I may do that if I ever can make it through

)