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

Optimise for low memory? #2

Closed
sm0kew0n opened this issue Jun 4, 2018 · 2 comments
Closed

Optimise for low memory? #2

sm0kew0n opened this issue Jun 4, 2018 · 2 comments

Comments

@sm0kew0n
Copy link

sm0kew0n commented Jun 4, 2018

HI, I've built this on a low memory embedded system and it runs out of memory when rendering. I noticed in your example code that it renders a 1920x1080 image, is this default? How can I specify image size or optimise for low memory system?

Thanks.

@adyavanapalli
Copy link

Not sure whether @fogleman is going to answer this (or you already have an answer), but the file ride.go in ribbon/scripts/ride.go has a section:

const (
        scale  = 1
        width  = 1920
        height = 1080
        fovy   = 60
        near   = 0.1
        far    = 100
)

Tweaking this and rebuilding might be what you're looking for.

@sm0kew0n
Copy link
Author

Thanks @adyavanapalli I did tweak that file and with a large swap file managed to render an image. However the render process was unacceptable long (over an hour) so unfortunately not suitable for my system.

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

2 participants