Jump to content
  • Advertisement
Sign in to follow this  
Adil nazir

[.net] Please help me

This topic is 3710 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to access vram in c# but i have no idea how to do this. Setpixel and getpixel functions are very slow i and to show my frams direct in video ram so please help me...........waiting

Share this post


Link to post
Share on other sites
Advertisement
What API/library are you using? Most will allow you to draw an image quickly without the need to draw each pixel individually.

Share this post


Link to post
Share on other sites
Always tell people what API you're using when asking a question.

Assuming you're using GDI+/System.Drawing, GetPixel and SetPixel are indeed slow. Use LockBits instead. That way you're writing the data in one shot instead of per pixel.

I have no idea if GDI+ uses video ram, it's not my forte. You could always use OpenGL, SlimDX, or Xna instead.

Share this post


Link to post
Share on other sites
Even with those you don't get 'direct access' to VRAM. Although presumably the OP wants to render quickly (which all of the APIs listed, even GDI in some cases) can do rather than actually poke bits in video memory.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!