rSimulate / Cosmosium

:earth_americas: js game engine for space-based games
Other
23 stars 7 forks source link

"content" templates can be stored clientside to reduce comms load #69

Closed 7yl4r closed 9 years ago

7yl4r commented 9 years ago

The html for the "tiles" and other items which may get sent to the client more than once (like the purchase success tile) should be stored in a js module and then used.

Right now: python sends full html generated from the tpl over websockets every time. Thus, lots of wasted communications sending the same thing repeatedly.

Better: python sends reference keyword over websockets, client puts together the html and displays it.

7yl4r commented 9 years ago

Note: we may be able to use the bottle tpl files if we add a client-side templating solution. Here's a comparison of options.

BrianErikson commented 9 years ago

Fixed issue with latest merge

BrianErikson commented 9 years ago

The majority was fixed, but the success tile and other small things like that may need to be implemented in the new data structure as well.

BrianErikson commented 9 years ago

This is resolved by the addition of a 'notify' protocol over websockets, which will toggle limitless prompts through jQuery