I have built a slideshow in slimDX and is scrolling a text at the bottom of the images. But I am running through a problem that when my new image is loaded in by the help of Texture.FromFile() function and i am giving the new image to the texture it is giving a little pause that is due to the loading of the image and moving text seems to jerky as it waits for some milli seconds when the new image is loaded. I am trying to resolve this problem by the help of a thread and also threadPool but is not getting the right output. Can any body please help me out in this context.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
Could you open all of the images before you start the slide show? Store them in an array of textures and then just loop through? If not, then I would suggest using the c# threading classes Josh Petrie suggested, or using the Thread class itself, which can be easier to use than it looks. If you are new to threading I would suggest avoiding it unless you are prepared to read up on a lot of nuances and problems unique to threading. It is certainly incredibly useful and powerful but you can end up causing a lot of problems if you're inexperienced. |
|||||||||||||||
|