Skip to main content
edited tags
Link
Heslacher
  • 51k
  • 5
  • 83
  • 177
added some Tags for More Attention
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

A question, but i got code that works for both, so well, hereHere is the SlimDX version:

This is, very slow at higher resolutions, and also not that fast at lower as wellones. I don´tdon't quite understand why, as iI thought, it would be faster assince it uses the GPU.

 newImage = Image.FromStream(ms);  gmp.DrawImage(newImage, 0, 0); 

It´sIt's just that inside a loop (SlimDX has it´sits own loop inside the message pump).

Now canCan you tell me, why drawing is faster? Cause from From my understanding, drawing with Panels etc,and such is slow, as it´sit's made for complete compatibility, and isn´tisn't optimized for hardware acceleration.

And this is supposed to redraw constantly as a new image will arrive all the time (msms is from a TCP Stream then put in a memorystream when received).

So iI basically ask for an analyzeanalysis of the code:).

A question, but i got code that works for both, so well, here is the SlimDX version:

This is, very slow at higher resolutions, and not that fast at lower as well. I don´t quite understand why as i thought it would be faster as it uses the GPU.

 newImage = Image.FromStream(ms);  gmp.DrawImage(newImage, 0, 0); 

It´s just that inside a loop (SlimDX has it´s own loop the message pump).

Now can you tell me, why drawing is faster? Cause from my understanding, drawing with Panels etc, is slow, as it´s made for complete compatibility, and isn´t optimized for hardware acceleration.

And this is supposed to redraw constantly as a new image will arrive all the time (ms is from a TCP Stream then put in a memorystream when received).

So i basically ask for an analyze of the code:)

Here is the SlimDX version:

This is very slow at higher resolutions and also not that fast at lower ones. I don't quite understand why, as I thought, it would be faster since it uses the GPU.

newImage = Image.FromStream(ms); gmp.DrawImage(newImage, 0, 0); 

It's just that inside a loop (SlimDX has its own loop inside the message pump).

Can you tell me why drawing is faster? From my understanding, drawing with Panels and such is slow, as it's made for complete compatibility and isn't optimized for hardware acceleration.

And this is supposed to redraw constantly as a new image will arrive all the time (ms is from a TCP Stream then put in a memorystream when received).

I basically ask for an analysis of the code.

Source Link
Zerowalker
  • 963
  • 14
  • 23
Loading