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 8052057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:27:18+00:00 2026-06-05T07:27:18+00:00

There is a need to visualize large quantity of 2d graphic objects (draw some

  • 0

There is a need to visualize large quantity of 2d graphic objects (draw some schema of complex structure) using .NET framework – for example 10-20 thousand primitives on one canvas. Assume we have respective hardware – powerful server PC with multi-core CPU, huge amount of RAM and some recent videocard. According to books and MSDN the solution is to use WPF with its hardware acceleration, particularly Drawings subsystem. I’ve implemented simple scenario with GeometryDrawings and VisualHost and it is pretty decent, but there is a problem – visualized objects also need to have changing state (i.e. quickly change color without redrawing) and accept mouse events (click, drag’n’drop) which Freezables doesn’t support as they are no Framework Elements. Any ideas how to solve the problem most efficiently? Our graphical object looks very much alike framework-supplied Shape and its descendants, but it surely won’t match performance requirements.
* edit *
Graphic objects can have as simple structure (red rectangle) as complex (multiple nested objects that contains Paths – random-shaped curves). Objects may overlap. Layering (hide and show specific objects at some particular moment) may be implemented later as additional feature. State change may occur once every 2-5 seconds, triggered by external event.

  • 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-05T07:27:19+00:00Added an answer on June 5, 2026 at 7:27 am

    One word: shaders.

    This looks like a decent tutorial on using shaders in WPF. Pixel and Vertex shaders themselves are pretty simple for drawing primitives.

    A shader will let you take full advantage of hardware acceleration. On a decent GPU, 10k primitives is nothing.

    Changing colors, etc. on a frame-to-frame basis is trivial in this context.

    Most of the shader tutorials are for 3D, but they’re applicable to 2D as well.

    You could also have a look at XNA. It doesn’t natively support putting a DirectX context inside of a WPF or Winforms window, but there are quite a few tutorials on that as well. XNA is pretty powerful and takes care of a lot of the boilerplate code like matrix manipulation, etc. that you’ll need. Even if you decide not to go with XNA, the tutorials on create.msdn.com can be very educational.

    Update 10/2012

    XNA is effectively dead, but there are quite a few examples out there of using shaders in WPF. If your C++ skills are up to snuff, you can use the D3DImage class to place a Direct3D window on your WPF form. The XNA samples are still valuable for their shader content and high-level approach to graphics development.

    If you were excited about XNA, have a look at MonoGame, which is coming along nicely. I’m using it successfully for some cross-platform 3D stuff (Win7, OSX, iOS) and have no complaints.

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

Sidebar

Related Questions

I need to visualize a large vector graphic. It's a map of roads, the
what I need: - there are two images: a background (large) and a proifile
I'm strugglying with UML diagrams as I just need to draw diagram to visualize
I need to visualize some data. It's basic 2D grid, where each cell have
Is there any need for code with author's name added in every function or
Hi There I need to get the names and values of checkboxes that have
Is there any need to use a custom buffer to either read or write
Why is there a need to convert a value (for example short) to string,
Why is there a need to explicitly call GridView.DataBind() to render the gridview. Why
Why is there a need to define a new method in RESTful controller, follow

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.