Faster way to set pixels
Hey... I haven''t done much GDI programming, otherwise I probably wouldn''t have been so shocked at the incredible P-O-S SLOW-ARSE SetPixel function... Now I just KNOW there is a faster way to set a pixel in Windows than this... THERE HAS TO BE! Anybody feel like enlightening me?
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Actually, I was hoping to get away without any sort of DX code whatsoever... seeing as how I don''t know any DX or DD or D3D or anything like that... I use OpenGL all the time... besides it''s for a 486 on W95. It doesn''t even have directx on there...
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
What do you need it for exactly? Are you drawing pixels in other controls orso?
Maybe you could create a DIBSection, and use this bitmap. You get a pointer to this bitmap, so you can simply write to memory. What could be faster? - Oh yeah, that BitBlt may be the slow part...
Maybe you could create a DIBSection, and use this bitmap. You get a pointer to this bitmap, so you can simply write to memory. What could be faster? - Oh yeah, that BitBlt may be the slow part...
quote: Original post by baskuenen
What do you need it for exactly? Are you drawing pixels in other controls orso?
Maybe you could create a DIBSection, and use this bitmap. You get a pointer to this bitmap, so you can simply write to memory. What could be faster? - Oh yeah, that BitBlt may be the slow part...
I''m just drawing some pixels in the client area... That''s why I tried using SetPixel and SetPixelV in the first place... SetPixelV was faster but still WAY too slow... Hmm, baskuenen, that sounds like it might work... I''ll try that, thanks for the idea.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement