Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Headless rendering #141

Closed
Closed

Description

@kkaefer

We should add a mode that supports headless rendering. This is useful for running this renderer on a server to provide compatibility tiles, and to run visual tests, and to run benchmarks.

A few things are different when rendering headless:

  • We have to create a custom framebuffer to render into
  • Incremental rendering doesn't make sense; always wait until we have acquired all resources
  • Label placement doesn't have to take rotation and zooming into account; it's static (like Mapnik)

I'm going to implement this as a "view": There is a live view (which is backed by a screen buffer and does incremental rendering), and a static view (which is backed by a custom framebuffer).

/cc @springmeyer

Activity

  1. springmeyer commented on Apr 15, 2014

    @springmeyer
    Contributor

    sweet.

  2. added a commit that references this issue on Apr 15, 2014
  3. kkaefer commented on Apr 16, 2014

    @kkaefer
    MemberAuthor

    Current status: Headless rendering works on OS X. The libuv event loop terminates once we have acquired all assets. Once it terminates, we do one single render.

    Code is in https://github.com/mapbox/llmr-native/blob/7e3f374bd482e5d7a553482ad0e908cf2a1c0d2f/test/headless.cpp

    I'm going to create separate issues for all further changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions