Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
sf::Texture bind
Print
Pages: [
1
]
Author
Topic: sf::Texture bind (Read 1473 times)
0 Members and 1 Guest are viewing this topic.
Fouf
Newbie
Posts: 23
sf::Texture bind
«
on:
October 11, 2011, 10:46:59 pm »
Is this function slow and should not be used? I just switched over a little texture manager over I made that used GLuints to store the textures and what not to use sf::Texture and now instead of doing glBindTexture I do texture->Bind();
I see about a 10% increase in my CPU usage, before about 8-12% now 22-28%.
I may have done something wrong , I'm going to look over everything once again. I'll edit this post with updates.
Logged
- Fouf
Laurent
Administrator
Hero Member
Posts: 32498
sf::Texture bind
«
Reply #1 on:
October 12, 2011, 07:49:58 am »
sf::Texture::Bind calls glBindTexture, nothing more, nothing less. The difference may be in the texture's attributes (format, wrap mode, filter, ...).
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
sf::Texture bind
anything