Skip to content

Multithreaded stbtt_PackFontRangesRenderIntoRects - #4

Closed
Haselnussbomber wants to merge 4 commits into
goatcorp:1.88-enhanced-abifixfrom
Haselnussbomber:multithreading
Closed

Haselnussbomber wants to merge 4 commits into
goatcorp:1.88-enhanced-abifixfrom
Haselnussbomber:multithreading

Conversation

@Haselnussbomber

@Haselnussbomber Haselnussbomber commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

This makes font rasterizing faster with a multithreaded loop over the fonts characters in stbtt_PackFontRangesRenderIntoRects.

To make this work, we need to enable OpenMPSupport in cimgui.vcxproj:

  <ItemDefinitionGroup>
    <ClCompile>
      <OpenMPSupport>true</OpenMPSupport>
    </ClCompile>
  </ItemDefinitionGroup>

Before:

Screenshot with timings without multithreading

After:

Screenshot with timings with multithreading

Comment thread imstb_truetype.h Resolved
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

Successfully merging this pull request may close these issues.

2 participants