Numerical performance

Curves do not need much calculations and are easy to generate. Rosettes, friezes and kaleidoscopes are different. They need many calculations for each pixel, often using several evaluations of trigonometric functions and exponential functions. Fortunately, our PCs are fast. A simple timing experiment shows that they can do approximately 10 million evaluations of the sine function per second. Is this fast enough ?

Not really, depending on the results you want. Typical low resolution images for the web have 512*512 pixels and thus a quarter of a million pixels. They need some tenths of a second to generate and that is tolerable. But if you want high-resolution images similar to digital cameras, then you will get around ten million pixels. This would make you wait for tens of seconds. Sure, that’s boring and we want to do better.

We can use tables to make much faster approximations of functions, as I will discuss in forthcoming posts. And we will see that there is a large difference in the speed of different browsers. This is important too for other image creation methods such as generative design and evolutionary creation.

This entry was posted in programming and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s