Fly Labs
Buy me some API creditsAsk FlyBot

Pryzmera – Fast PDF viewer fully rendering on the GPU

In September of 2021, my father told me he was struggling to open PDFs. As part of his job, he had to view many PDFs with millions of vector paths that were generated by CAD software, and we could not find any PDF viewer that would render them at more than a few frames per second.I thought that if we simply converted those paths into triangles the GPU could just blast through them. Today, after more than 5 years and 3 iterations in 3 different languages, I would like to share with you the 3rd iteration of my PDF viewer: Named "Pryzmera", I wrote it by hand with the goal to render those CAD PDFs at interactive frame rates, and with the intention to make every feature as fast as I could possibly imagine it to be.When Pryzmera opens a document, it first starts by interpreting each page. As a page is interpreted, it generates small clipping & tessellation jobs that run in parallel. Clipping & tessellation is performed by Pryzmera's own tessellator and produces the initial geometry for the page. This geometry is then collected and jointly optimized to produce a final GPU representation that mostly consists of colored/textured triangles. The representation is completely static, which in turn makes rendering performance (FPS) almost static, even when the view changes (e.g. panning/zooming/rotating). Once the representation is uploaded to the GPU, rendering a page typically requires only 3-4 draw calls.On my machine (GTX1080/i7-5820k), Pryzmera can render my father's CAD PDFs at hundreds (and sometimes thousands) of frames per second. Compared to Adobe Acrobat:- Loading is about 2-10x faster (depending on how Acrobat is feeling on the day)- Rendering is about 1200-5700x faster (depending on Pryzmera's graphics settings)- Text search is about 100x faster (although it's hard to measure Acrobat's performance here)- And this trend continues...If you would like to test the performance yourself, you can press F8 to br

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

38

out of 100

Verdict

SKIP

high confidence

Competition

No competitor data yet

Trend

No signal yet

A PDF viewer that turns vector paths into GPU triangles so huge CAD PDFs render at hundreds of frames per second.

The pain

Engineers and CAD users who open PDFs with millions of vector paths get a few frames per second in existing viewers, so panning and zooming are slow and tiring.

The gap

Mainstream viewers redraw vector paths on the CPU for each view change, while Pryzmera builds a static triangle set once and reuses it, which makes frame rate almost independent of zoom and pan.

Build angle

Do not rebuild the renderer. Pick one niche such as construction drawings, electrical schematics or GIS plans, sell a paid desktop or plugin viewer to teams in that niche, and test willingness to pay with the existing build before extending it. A WebGPU version could ease distribution.

Strengths

  • Large, measurable speed gains over Acrobat in loading, rendering and text search
  • Real user pain from a real workflow, the founder's father's daily work
  • Static GPU representation gives steady frame rates while panning, zooming and rotating
  • Years of work are already done and a working product exists

Risks

  • Small niche, and most people find Acrobat fast enough
  • No pricing, distribution or customer proof beyond one user
  • Full PDF compatibility is a long tail of edge cases that is costly to maintain
  • Needs a capable GPU and the geometry preparation step could use a lot of memory on very large files
  • Incumbents or free viewers could add GPU rendering for large vector files

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Pryzmera – Fast PDF viewer fully rendering on the GPU”.

Open FlyBot