Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Pryzmera – Fast PDF viewer fully rendering on the GPU (opens external site)

171 points by RedMindZ 2 days ago pryzmera.com 69 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. I can’t test it right now but what do you use to render JPEG2000? I work with OCR’d documents stored as searchable pdfs, and the image layer is jpeg2000. Good compression ratio, horribly laggy in most pdf viewer I have used so far.
    Replies (1)
    1. Pryzmera doesn't use anything special to render JPEG2000 or any other type of image. It decompresses all images at their full resolution, packs them into as many texture atlases as necessary (1 is usually sufficient), and renders them with textured triangles. Hence, rendering performance is independent of the image types used in the document.

      The video on the website that showcases the "Image Viewer" capabilities is rendering an image with a resolution of 63360x35640 (that is 2.2 billion pixels, or 9GB uncompressed) on my 8GB VRAM GPU at about 1100-1200 FPS, bottlenecked by the CPU. Images have a near-zero impact on rendering performance, so Pryzmera should handle your JPEG2000 documents well.