Sending a memory bitmap over internet
I was wondering how this would be done?
Let's say i draw a new picture in game, so it is saved as a memory bitmap. Then i wanted to send it over internet to another computer who would load and show it.
Should the bitmap be serialized or how would you be able to send it just like any other information? The network commands are no problem, just the method of sending the bitmap.
Lossless = png file
Lossy = jpg file
Thread #611084. Printed from Allegro.cc
I tried a huge for loop to check the bitmap and send it that way, well it worked but i wonder how can you give process time for other actions also? Right now the game jams for a few seconds. I tried Sleep() but it just jammed it completely.
And i wonder what Arthur was trying to say.