Jump to content

  • Log In with Google      Sign In   
  • Create Account

Paulus_newbieus

Member Since 04 Aug 2002
Offline Last Active Nov 18 2012 04:11 PM
-----

Topics I've Started

Dealing with websocket message overload on client

18 August 2012 - 03:21 AM

I have a web-socket server sending object positions to all clients at a fixed rate (say 40 Hz).
Client side (HTML5 browsers) I receive these messages and draw the object (canvas) at that new position.

My problem is that sometimes, if there is not a great deal of other JavaScript processing activity on the client, the objects seem to skip a bunch of updates and get transported over a large range. So instead of a nice smooth animation, I get stuttery movements.

I have some code to handle lagging updates using linear interpolation - but this problem is different, this is not where the updates are coming in too slow, its where they are coming in too fast!

How the heck do I solve this without resorting to decreasing the server update rate, which I really don't want to have to do?!

Any suggestions greatly appreciated!

Max Payne 3 - Plays best on PC or PS3?

14 April 2012 - 12:21 PM

So I loved all the previous Max Payne games and am really looking forward to the new one.

I have started playing games on my console more and more, although I come from a heavy PC gaming background.

My problem is that I cant decide whether to buy the game for PC (better graphics?) or my PS3 (couch comfort?)!

What do you guys think?

Seeding a pseudo-randomly generated game map

24 October 2011 - 11:03 AM

Hi, I am looking to build a pseudo-randomly generated game level/map.
A map is divided into blocks of areas, and using a seed I want to be able to regenerate the same content of any of these areas anywhere in my game map.
So if I teleport to a far-off area, it will look the same as the next time I visit the same area after restarting the game.

I know lots of games already use this mechanic, but my issue is with the fact that to seed a pseudo-random number generator you typically supply a single value such as an unsigned integer.
What I have instead is an x,y grid coordinate, not a single value, because that is the only way I can think of how I would identify a map area, especially if the map is potentially infinite in size.
For example, the first area may be 1,1. To the right is 2,1, and below is 1,2 etc.

So I guess what I am asking is how can I use a coordinate as a seed?

PARTNERS