plaza-in-a-heatwave / Cadesim

The cadesim server and client, inspired by Puzzle Pirates.
1 stars 1 forks source link

Fix delay on client startup; due to map screenshots being sent from server to client #72

Open David52920 opened 4 years ago

David52920 commented 4 years ago

Currently just converting images to bytearray and sending through a packet to client, this tends to cause a delay because of all the different screenshots being sent.

Maybe use ChunkedFile provided by Netty library/ add handler for client to send files over instead.

plaza-in-a-heatwave commented 4 years ago

Could also try reducing png quality in case there's a sweet spot for size/quality?

Or gradually load over time, and any map images are displayed meanwhile as image loading?

za121 commented 3 years ago

Is there a reason the client cannot render the map from the text representation of it?