As hinted by the commenter, I’ve tried creating a single instance of CudaDirectXInteropResource along with the D3D texture. It worked. It’s counter-intuitive and undocumented, but it looks like cuGraphicsUnregisterResource destroys the newly written data. At least on my machine with GeForce GTX 960, Cuda 7.0 and Windows 8.1 x64. So,...

I think its recommended to save resources if the program is not displayed (e.g. if the user is in lock screen). From my experience you can safely ignore it, it just keeps rendering even if the UI is not shown to the user. If your application does not need a...