Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Huge memory usage for GPU when using textures #23

Open
Labels
bugSomething isn't working help wantedExtra attention is needed

Description

Hey, so I had some fun porting text rendering to Forma using parley:

Screenshot 2022年12月19日 at 22 18 50

However, when using the GPU, the memory usage is quite high (e.g. for this demo, in release mode, ~400MB on my Mac). When I then start resizing the window, it quickly grows to ~600MB and beyond.

This doesn't happen when using a CPU runner. If I render text without emoji, then I also don't see this behaviour with the GPU runner either.

The way emoji are rendered is by rendering the glyph to a small image (16x16 right now) and then rendering this image with a 16x16 Path.

So only if I'm rendering emoji images on the GPU do I see huge memory consumption (and increasing memory consumption).

Do I need to perform some sort of cleanup when rendering images using Forma with the GPU renderer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /