SFML community forums
Bindings - other languages => DotNet => Topic started by: Freedon Nadd on January 15, 2013, 05:28:44 am
-
Hi,
I'm new with SFML 2.0 and I was wondering how to rapidly draw large bitmaps.
Should I use a texture?
Should I create new texture for every bitmap or should I update the same one over and over?
What would be the fastest way?
Thanks for your help.
Freedon
-
You need to define what you mean by 'large bitmaps'...
Basically you just load the images into a texture and draw them with a sprite.
Loading an image is quite a heavy process, so you shouldn't/can't to it every iteration. Having multiple textures will work tough.
Then again if you have giga bytes of image data, then you'll have problems with your GPU and you have to use some different way to load and display the data.
-
Hi,
Thanks for the quick reply.
Let say the bitmap is 1920x1080 and I receive a brand new one every 33 millisecond and I cannot preload them.
What would be my options?
Thanks for your help.
Freedon
-
Create texture and use Update method.
Btw what are you trying to do?
-
I'm trying to make a tool that process a bitmap with different filters and display juste like a video.
I've looked around the web and SFML was rated one of the fastest renderer, I'm trying it out.
If you have any other idea please let me know.
Thanks for your help.
Freedon
-
What about using shaders to implement those filters?