Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - comme

Pages: [1]
1
If your application is performance critical use shaders, really!
If you don't use shaders, your application can't be performance critical, or you've left out the important information. You're then left with keeping a copy of sf::Image or better yet a std::vector<sf::Unit8> on the RAM, doing your pixel manipulation and then calling update() on the sf::Texture.
ah well. Thanks.

I need the best possible framerate I can get for my software rendering project.
I remember using sdl years ago and getting around 8000fps writing (almost) directly to vram, same with directdraw, but with update() I count very few fps....

2
Graphics / efficient method for manipulating pixel data of surfaces/images
« on: September 30, 2014, 10:28:24 pm »
Hi,
I want to draw directly to the renderwindow, and I see I can use sprites, images, textures, that sfml displays on the screen.
I am trying to avoid the overhead of copying megabytes of screen arrays around, my application is performance critical.
Is there any particular method/trick to manipulate the pixels or do I have to use update() (I remember the developer of this library saying years ago that it does a full copy)

Thanks for any input

Pages: [1]