Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature: function dxDrawCircle #266
Client side function:
bool dxDrawCircle( vector2 position, unsigned float radius [, float startAngle = 0, float stopAngle = 360, color theColor = white, color theCenterColor = theColor, int segments = 32, int ratio = 1, bPostGUI = false ])
dxDrawCircle(1500,150,20); dxDrawCircle(1700,150,100); dxDrawCircle(1500,250,50);
I put 200 pacmans with 64 segments then what couse ( on my medium pc ) about - 20fps.
How does the performance compare to
This is amazing. DX circles were a mayor performance hog, but dxDrawCircle (Shader variant) was already pretty good. If this here is even 2-3 times faster it would drain no performance at all.
I tested these functions with the script (circle.zip) provided. I was also able to draw around 900 circles and rectangles with full FPS, so it's indeed good performance-wise. If variables are renamed properly, this PR is ready to merge.