Original Post
hi, im making a simple rpg using a Server, client and a MySql database .
every second the client renders 20 frames and if a key is pressed it updates the database of the new position
while ( 1 ) {
handle events
move player if a key is pressed
if postition of player has changed write new position to database
}
the problem is i think the database is put under too much stress for updating the position evey 50-75 ms
Is there another way to update the positions ?
thx
every second the client renders 20 frames and if a key is pressed it updates the database of the new position
while ( 1 ) {
handle events
move player if a key is pressed
if postition of player has changed write new position to database
}
the problem is i think the database is put under too much stress for updating the position evey 50-75 ms
Is there another way to update the positions ?
thx