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

Author Topic: Can't draw 2 big textures  (Read 1185 times)

0 Members and 1 Guest are viewing this topic.

CoolRash

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Can't draw 2 big textures
« on: May 02, 2022, 04:08:03 pm »
Hello guys. Make small jRPG like game with south park like animations. And i animated 4 game characters with 12000x1800px texture. On battle scene cant simultaneously  draw 2 charecters (texture 12000x1800px) on 1 scene. But he both draw if one remove the draw method.
Or is SFML not intended for full-fledged games? Is he weak? What the ****?

p.s.: how download image here? you can download screenshoot)) sorry)
« Last Edit: May 02, 2022, 04:19:00 pm by CoolRash »

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Can't draw 2 big textures
« Reply #1 on: May 02, 2022, 06:51:28 pm »
unless you have a 32k monitor (does it even exists?), there is no point in using a texture that big in this case.
anyway, the bottleneck would be your own computer. and a bottleneck in people helping you is that many swear words.
also, we have no idea whats inside rika.paint(), so there is not much we can help. you didn't post any code at all.

anyway, have you tried a complete and minimal working example? just a simple program drawing two big textures at once?
Visit my game site (and hopefully help funding it? )
Website | IndieDB

CoolRash

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Can't draw 2 big textures
« Reply #2 on: May 02, 2022, 07:25:26 pm »
okey. sorry for my english.
i dont tell some details. Texture 12000x1800px, and sprite (it method sprite.setTextureRect()) 600x600px.
Self game with resolution 1366x768px.

rika.h code:
(click to show/hide)

CoolRash

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Can't draw 2 big textures
« Reply #3 on: May 04, 2022, 07:08:45 pm »
Help me plsssssssssssss

fallahn

  • Sr. Member
  • ****
  • Posts: 492
  • Buns.
    • View Profile
    • Trederia
Re: Can't draw 2 big textures
« Reply #4 on: May 04, 2022, 07:35:39 pm »
12000px is *very* large for a texture and your GPU might not support it. You can check the max texture size your hardware supports with sf::Texture::getMaximumSize() https://www.sfml-dev.org/documentation/2.5.1/classsf_1_1Texture.php#a0bf905d487b104b758549c2e9e20a3fb and split it into smaller textures if you need to.

For southpark style animation a better choice might be to use software like Spine or Spriter