Search code examples
javascriptfloating-pointgpumandelbrot

gpu decimal precision


I have created a mandelbrot set in javascript which uses the gpu but because javascript decimals are not so accurate when I zoom in to much the screen goes pixely. If i were programing it on the cpu it would not be so hard but because I am using gpu.js I cant use strings and therefore no decimal libraries I know.

I only want to increase the accuracy, not make it endless.

Is there any way to create a more precise float with multiple floats (I can not use strings because of the library's limitation) so that I can:

  • multiply
  • add
  • use powers

image of the pixlation


Solution

  • googling : gpu and "arbitrary precision" shows IMHO that this problem is not solved now.

    So you can:

    • write your own library
    • use CPU arbitrary precision libraries