Jump to content
  • Advertisement
Sign in to follow this  

[SlimDx] [DX9] ToFile and ToStream slower with Release runtime

This topic is 2941 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'm doing some painting on a video surface and want to save it to a new video. This runs fine on my development computer, but when trying it on another computer the performance was quite awful.
After a bit of searching I found that the big difference is that I'm using the directx debug runtime when developing.

I tested in the Direct3D9 samples project minitri, and the same thing happens there with the following piece of code:

Surface surface = device.GetBackBuffer(0, 0);
DataStream stream = Surface.ToStream(surface, ImageFileFormat.Jpg);

When using the release runtime it takes around ~100ms longer than when using the debug runtime. Same thing when writing to a file with ToFile() instead.
I have the June 2010 DirectX SDK and the June 2010 SlimDX release.


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!