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

Author Topic: Does SFML only have large texture errors at compile time?  (Read 1646 times)

0 Members and 1 Guest are viewing this topic.

Me-Myself-And-I

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Does SFML only have large texture errors at compile time?
« on: March 03, 2023, 10:44:24 pm »
So I know that when there's a texture that too large you'll get an error but I wasn't sure if this mattered once compiled.If you compiled the program on a computer that allowed that larger texture but ran the compiled program on another computer that isn't supposed to be able to handle that texture size,will it load the texture or  give that error? 

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Does SFML only have large texture errors at compile time?
« Reply #1 on: March 03, 2023, 10:55:01 pm »
Of course it depends on what computer runs the program. ;)

kojack

  • Sr. Member
  • ****
  • Posts: 343
  • C++/C# game dev teacher.
    • View Profile
Re: Does SFML only have large texture errors at compile time?
« Reply #2 on: March 04, 2023, 03:46:08 am »
Compiling doesn't load textures, the code has no idea what size they are until the program is run by the end user.
The limit is determined based on the properties of the graphics card at run time. Different cards can have different limits, older cards might be 2048x2048 or lower, newer ones (like my RTX2080TI) are 32768x32768.

Me-Myself-And-I

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Does SFML only have large texture errors at compile time?
« Reply #3 on: March 04, 2023, 08:35:44 pm »
Thanks for the reply.That tells me all I needed to know.

 

anything