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

Author Topic: Any size limitation on RenderTexture?  (Read 1680 times)

0 Members and 1 Guest are viewing this topic.

ccleung6

  • Newbie
  • *
  • Posts: 22
    • View Profile
Any size limitation on RenderTexture?
« on: October 06, 2012, 09:37:30 am »
Hi,

Does RenderTexture has size limit?
Is it depends on hardware capability?
And how to calculate the memory usage of a RenderTexture?

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Any size limitation on RenderTexture?
« Reply #1 on: October 06, 2012, 09:42:09 am »
sf::RenderTexture has the same size limit as sf::Texture, which is given by Texture::getMaximumSize().

The video memory usage of the texture is width * height * 4 bytes.
Laurent Gomila - SFML developer

ccleung6

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Any size limitation on RenderTexture?
« Reply #2 on: October 06, 2012, 09:56:11 am »
sf::RenderTexture has the same size limit as sf::Texture, which is given by Texture::getMaximumSize().

The video memory usage of the texture is width * height * 4 bytes.

Got it. Thx!

 

anything