Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:17:52+00:00 2026-06-12T09:17:52+00:00

I am currently working on an application, which uses a video projector to create

  • 0

I am currently working on an application, which uses a video projector to create an effect similar to a real laser. A really nice example of what I’m trying to archive can be seen on Youtube here.

Basically that application needs to draw simple moving shapes in various colors. I have a pretty complicated setup using pycairo allowing the primitives to pass through a set of modifiers to change position, scale and rotation. This allows for a great deal of flexibility.

Unfortunately pycairo seems to be pretty slow at drawing dashed circles. I tried drawing 30 circles like this:

# setup, transforms...
# Example color-scheme:
self._colors = [(0.0, 1.0, 0.0)]
# drawing dashes one after another
for count, color in enumerate(self._colors):
    cr.set_dash(dash_len, self._dash_len * count)
    cr.set_source_rgb(color[0], color[1], color[2])

    cr.arc(0, 0, self.radius(), 0, 2 * math.pi)
    cr.stroke()

The whole thing looks like this. This is not able to sustain 25fps with on 800×600 using a Core2Duo.

Is there a faster way to draw circles? Quality is not really an issue.

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:17:52+00:00Added an answer on June 12, 2026 at 9:17 am

    Cairo aims at high-quality rendering – and it is used a lot in static, or quasi-static rendering of 2d things.

    It is no wonder it can be slow —
    I think the first try I’d make in your place would be to use pygame + pyopenGL —
    I am sorry I am not comming with a full example, but this project looks like a good start:
    http://www.willmcgugan.com/blog/tech/2007/6/4/opengl-sample-code-for-pygame/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a sample application which uses QNetworkAccessManager to send the
Currently I am working on a Large Scale Application which uses GWT with Hibenate.
We are currently working on the finishing touches of an application which uses Phonegap
I am currently working on a small N-Tier application in C# which uses Linq-to-Entities
I'm currently working on an application which uses PRISM 4 to divide its functionalities
I'm currently working on a largely asynchronous application which uses TAP throughout. Every class
I am currently working on an application which requires different behaviour based on whether
I am currently working on an application in-which I need to take the screenshot
I am currently working on an android application which requires reading data from bluetooth
I'm currently working on my first deployment of a large server side application which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.