Normal
Thanks Mr Hipps for teaching my some more details I think we can close this thread now as it doesn't lead anywhere.It's not really worth to change it since GetCurrentImage() doesn't block the rendering process because of the lock... statements the current implementation shouldn't be a problem.Also all other known plugins which use this function call it with 1 sec delay so it's not that important if takes 10 ms or 50 ms.Regarding the Atmolight plugin i again played with the backbuffer and also applied the optimized techniques we discovered in this thread to resize an image in GPU mem (stretchrect) and to copy it to sysmem (lockrect).The result is that i get a framerate of ~ 27 fps regardless of HD or SD because the framegrabber only gets the image from the evr renderer thus only video but the backbuffer contains the whole desktop.Since we only have 50 Hz and 60 Hz content ~ 27 fps grabbing rate is absolutely fine for Atmolight and CPU usage is also hardly measurably, so i am fine now without the need of a patch Although the result of this thread is that we drop the request and i think we all learned a bit more about using DirectX in an efficient way.Thanks to all we gave their 5 cents
Thanks Mr Hipps for teaching my some more details
I think we can close this thread now as it doesn't lead anywhere.
It's not really worth to change it since GetCurrentImage() doesn't block the rendering process because of the lock... statements the current implementation shouldn't be a problem.
Also all other known plugins which use this function call it with 1 sec delay so it's not that important if takes 10 ms or 50 ms.
Regarding the Atmolight plugin i again played with the backbuffer and also applied the optimized techniques we discovered in this thread to resize an image in GPU mem (stretchrect) and to copy it to sysmem (lockrect).
The result is that i get a framerate of ~ 27 fps regardless of HD or SD because the framegrabber only gets the image from the evr renderer thus only video but the backbuffer contains the whole desktop.
Since we only have 50 Hz and 60 Hz content ~ 27 fps grabbing rate is absolutely fine for Atmolight and CPU usage is also hardly measurably, so i am fine now without the need of a patch
Although the result of this thread is that we drop the request and i think we all learned a bit more about using DirectX in an efficient way.
Thanks to all we gave their 5 cents