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

Author Topic: sf::Texture bind  (Read 1475 times)

0 Members and 1 Guest are viewing this topic.

Fouf

  • Newbie
  • *
  • Posts: 23
    • View Profile
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.
- Fouf

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
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, ...).
Laurent Gomila - SFML developer