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

  • SEARCH
  • Home
  • 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 8411173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:22:29+00:00 2026-06-10T00:22:29+00:00

I am currently working on a project to show a 2d graphical representation of

  • 0

I am currently working on a project to show a 2d graphical representation of a Gerber file. The function draws each element from a list, with possibly about 50,000 shapes in my current test file.

My initial method using drawing functions in the system drawing namespace, which I think uses GDI+, and rendering to an off screen bitmap but proved too slow, especialy when having to re draw the bitmap everytime the user zoomed in or moved the image.

I then looked to using direct 2d in slim dx library but this was actually slower, which didn’t seem correct (can anyone offer any insight to this??? I made a test file drawing 1000000 elipse shapes in random locations to test and could/may upload if i find time)

I am just looking for an idea for a next step. I was wondering whether I should look into using direct3d11 instead of direct2d. Some people recommend XNA, but I thought more for game design.

Any ideas will be welcomed…

Nick

  • 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-10T00:22:30+00:00Added an answer on June 10, 2026 at 12:22 am

    The first thing you should do is to draw only the visible object. Don’t try to draw anything that is outside of the screen. This will limit the number of shapes that needs to be drawned.

    If the list of shapes don’t change often, you could draw them in a bitmap and then only zoom/scale/translate the bitmap. That way, you don’t need to draw the shapes every time.

    An other technique is to make the user experience more smooth, not really faster by using double buffer. http://msdn.microsoft.com/en-us/library/b367a457.aspx

    GDI+ should be fast enought.

    • 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 small ecommerce project. I want to show a
I am currently working on android project where I am using a custom list
I am currently working on grails project. I have created eight different plugins. Each
I am currently working on a php/javascript project which retrieves information from a database
I'm currently working on a project where I hide/show some table rows based on
I'm currently working on a Google Maps project and am implementing a search function.
I'm currently working on project, Android Internet Download Manager. In order to download the
I am currently working on Project Euler for fun, and use Haskell for practicing.
I am currently working on a project about calculations.I have done the main part
I am currently working on a project that requires me to display PDF documents

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.