# draw_set_circle_precision

## Sets the precision for drawing a circle or
ellipse.

### Syntax:

draw_set_circle_precision(precision);

Argument |
Description |

precision |
The precision of all circles drawn after this function is
called. |

**Returns:** N/A

### Description

To optimise performance when drawing circles, *GameMaker
Studio 2* basically draws a polygon shape with enough sides to
make it *appear* circular. However, depending on how big or
small you need your circles to be, you may find that changing this
value can help increase the performance of your game, or make the
circles look better. The precision value that you can input into
this function is the number of sides the circle polygon has, and
this number can be anything between 4 and 64, *but must be a
number divisible by 4*, with a default value of 24.

**NOTE**: If you are wanting to draw a shape
using a shader, you should be aware that most shaders expect the
following inputs: vertex, texture, Colour. However, when using this
function, only vertex and colour data are being passed in, and so
the shader may not draw anything (or draw something but not
correctly). If you need to draw shapes in this way then the shader
should be customised with this in mind.

### Example:

draw_set_circle_precision(12);

The above code will draw all circles using a 12 sided
polygon.

##### © Copyright YoYo Games Ltd. 2018 All Rights Reserved