speckij / hochwasser Goto Github PK
View Code? Open in Web Editor NEWHighly efficient client for Pixelflut (https://cccgoe.de/wiki/Pixelflut)
License: BSD 3-Clause "New" or "Revised" License
Highly efficient client for Pixelflut (https://cccgoe.de/wiki/Pixelflut)
License: BSD 3-Clause "New" or "Revised" License
Currently the command line does not support all functionality the REPL offers. Especially for automated deployments it would be useful to align both options into a central struct.
Currently missing from CLI:
Missing from REPL:
Currently when connecting to a rán
c&c a client has no idea of knowing what is currently being pushed.
It would be cool to see a preview of what is currently pushed by a specific machine, especially when pushing with multiple people in different physical locations. Else only the human using the c&c REPL knows.
While your code is fast, it does not accurately display pictures, e.g. even this one: https://github.com/SpeckiJ/Hochwasser/raw/master/benchmarks/benchmark_x280.png
Text (e.g. "Hochwasser") is shown in red.
Tested with go version go1.11.6 linux/amd64.
Most servers (pixel, pixelflut-server-dotnet, shoreline...) support
OFFSET <x> <y>
Depending on the screen size, abuse of OFFSET
yields a significant efficiency increase in efficiency.
By splitting the image into blocks (e.g. 100x100 or 10x10), prepending each block with an offset command and sending relative coordinates the amount of bytes sent can be reduced.
For a 1280x720 full hex image, a block size of 100x100 yields a 12% reduction in bytes to be transmitted.
A block size of 10x10 yields a 22% reduction.
Potential efficiency gain scales with canvas size.
The theoretical maximum is yet to be determined, and further optimization is possible by dynamically adjusting block size.
When using a fixed number of connections/threads with multiple blocks being handled by one connection, the blocks need to be sent sequentially and ideally as a concatenated byte stream.
When sending hex values with less than 6 digits, servers seem to behave the same and add leading zeroes. All hex values can be optimized by stripping up to 5 zeroes from the left.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.