M
marc
The game I'm working on has one, separate game-thread.
When the player presses an 'arrow'-key, I just set a
variable, which is read by this game-thread.
When the player releases the key, I reset the variable.
So far so good.
However, I noticed that on slower machines (233 MHz),
the key-released-event is somewhat delayed (only when
the game-thread is running at the same time).
In other words, when a key gets released, it takes a
noticable amount of time before the key-released-event
occurs (I can tell because I've put 'label.setText()'
statements in the event-handlers).
This really messes up the game-play ! :-(
Has someone else ever experienced this ?
When the player presses an 'arrow'-key, I just set a
variable, which is read by this game-thread.
When the player releases the key, I reset the variable.
So far so good.
However, I noticed that on slower machines (233 MHz),
the key-released-event is somewhat delayed (only when
the game-thread is running at the same time).
In other words, when a key gets released, it takes a
noticable amount of time before the key-released-event
occurs (I can tell because I've put 'label.setText()'
statements in the event-handlers).
This really messes up the game-play ! :-(
Has someone else ever experienced this ?