Code Monkey home page Code Monkey logo

pixelflut-server-dotnet's Introduction

pixelflut-server-dotnet

This is a Pixelflut server (see here or here for details) written in C# taking advantage of the relatively new performance-focused C# 7.2 feature Span<T> to reduce memory allocations during handling of Pixelflut traffic. On my system (i7-7820HQ, 32GB DDR4-2400) it is able to handle about 1 GBit/s per connection/thread (4-5 GBit/s total).

Features

  • Supported commands:
    • SIZE to get the current canvas size
    • PX X Y RRGGBB / PX X Y RRGGBBAA to set the color for the pixel at the given position
    • PX X Y to retrieve the pixel color at the given position
    • OFFSET X Y to set an offset to apply to pixels sent in the future
    • HELP to get a short help text about pixelflut
  • simple output viewing via MJPEG (supported on all major browsers)
  • optional NDI output
  • Prometheus metrics (pixels sent/received, bytes received, current number of Pixelflut and HTTP connections, etc.)

Usage

If you're using Docker, docker-compose up --build -d should get you up and running in a few seconds.

If you don't want to use Docker, you can either run this on Windows using Visual Studio or on Windows/Linux/macOS using .NET SDK. Settings can also be set via environment variables.

Installation on Ubuntu (e.g. 22.04):

sudo apt update && sudo apt install dotnet-sdk-6.0

Example startup with HTTP port 8080, Pixelflut port 1234 (for more config options see PixelFlutServerConfig.cs):

cd PixelFlutServer/PixelFlutServer.Mjpeg
MjpegPort=8080 PixelFlutPort=1234 dotnet run -c Release

pixelflut-server-dotnet's People

Contributors

patagonaa avatar

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.