Giter Club home page Giter Club logo

Comments (7)

defnull avatar defnull commented on June 2, 2024

I have seen that a while ago but unfortunately the "YOLO License" is useless and does not allow anything to anyone, so effectively the linked repository is not open source and cannot be used without breaking copyright laws.

So, the last two days I wrote my own C server (based on OpenGL/GLFW and libevent). It's in the 'feature-pixelnuke' branch. I suck at C, but it works on my computer ;) Ayn help would be appreciated.

from pixelflut.

ccoenen avatar ccoenen commented on June 2, 2024

I am not any good ad C myself, But I have a Raspberry Pi right here that's mostly used for "HEY LET'S HAVE A PIXELFLUT PARTY". In other words: I can be your beta tester. I'm schaduling a Pixelflut thing for late april anyway, might as well use the C version

from pixelflut.

defnull avatar defnull commented on June 2, 2024

I'm not sure if this compiles or runs on a RasPI or what is needed to get it to compile. Would be a valuable target, though.

from pixelflut.

ccoenen avatar ccoenen commented on June 2, 2024

Also interesting: is python actually its bottleneck right now? The performance with ~20 people was not breathtaking. But this could also be the ("old") Pi 3's wonky network interface. I'll have to try this on a 3+, which is supposed to have slightly better/faster ethernet.

from pixelflut.

defnull avatar defnull commented on June 2, 2024

In Python the string handling is the bottleneck. Network traffic is split into lines, converted to string, stripped, splitted, parsed, and more. That causes a lot of intermediate string objects to be created. Parsing the byte data directly would improve the performance significantly.

On the other hand, the Python version is designed to be easily hackable and 'fair'. For example, there is a sleep call every 10 lines to limit the lines-per-second per client. Removing that would increase throughput a lot, but would also allow fast clients to draw hundreds of pixels at once, which might look less fluent on screen.

If pure throughput is your priority, there is sure a lot of room to improve the python implementation.

from pixelflut.

defnull avatar defnull commented on June 2, 2024

Really nice to hear that "Pixelflut parties" are a thing, though :)

from pixelflut.

defnull avatar defnull commented on June 2, 2024

We'll track Raspberry Pi compatibility in #8

from pixelflut.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.