Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPS Limit #27

Open
jnordberg opened this issue Mar 11, 2015 · 5 comments
Open

FPS Limit #27

jnordberg opened this issue Mar 11, 2015 · 5 comments

Comments

@jnordberg
Copy link

I'm using LEDscape to drive just a handful of ws281x LEDs and I'm seeing a CPU usage of about 40%. Is it possible to limit the fps? I don't really need 3k updates per second :)

[render] fps_info={frame_avg_usec: 301, possible_fps: 3322.26, actual_fps: 3185.30, sample_frames: 31853}
@RGB-123
Copy link
Collaborator

RGB-123 commented Mar 11, 2015

j, what does your json config look like?

@jnordberg
Copy link
Author

{
    "outputMode": "ws281x",
    "outputMapping": "rgb-123-v2",
    "demoMode": "fade",
    "ledsPerStrip": 4,
    "usedStripCount": 1,
    "colorChannelOrder": "RGB",
    "opcTcpPort": 7890,
    "opcUdpPort": 7890,
    "enableInterpolation": true,
    "enableDithering": true,
    "enableLookupTable": true,
    "lumCurvePower": 2.0000,
    "whitePoint": {
        "red": 0.9000,
        "green": 1.0000,
        "blue": 1.0000
    }
}

@RGB-123
Copy link
Collaborator

RGB-123 commented Mar 11, 2015

Oh wow, you are only running a few strips. You may want to turn off dithering and interpolation by setting these to "false"

@jnordberg
Copy link
Author

Yeah I realise that my usage isn't what this lib was written for :) Setting interpolation and dithering had no effect, but I found that increasing the number of LEDs per strip did, managed to get it around 10% with 64.

@Yona-Appletree
Copy link
Owner

You're absolutely right that this sort of small setup isn't what LEDscape is currently optimized for, but I think it's a good direction to move in. I would welcome and pull requests for this sort of functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants