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

Author Topic: Graphics Rendering Error  (Read 1285 times)

0 Members and 1 Guest are viewing this topic.

wez470

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Graphics Rendering Error
« on: July 25, 2016, 03:50:18 am »
I am having an issue where one of the paddles in my pong game isn't being drawn sometimes.  Here is a video showing the problem https://drive.google.com/open?id=0B9H8iYcDrB3JVHVGZ3hfX3ZjOVU and here is a link to the source code causing the error https://github.com/wez470/SFML-Pong/tree/fullscreen

The issue is happening on my desktop and laptop.  My laptop is running Ubuntu 16.04 with SFML 2.3 and has an NVidia Optimus GPU.  My desktop is running Ubuntu 15.04 with SFML 2.3 and has an NVidia GPU.

Don't mind the segfaults happening in the video when I kill the program.  That seems to be an issue isolated to my laptop (which I did the screen recording on) where when the destructor of an sf::Text object is called, it causes a segfault.  I can just run a program that creates an sf::Text object and it will segfault on my laptop.  That doesn't happen on my desktop though.  I didn't record the video on my desktop because for some reason when the screen recorder software was running, the right paddle would never show up.  When the screen recording software wasn't running, it would should up sometimes like it does in the video.

The object is always actually there as you can make the ball still bounce off the paddle if you move it properly when it isn't being rendered.  I'm really puzzled by this and any help would be appreciated.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Graphics Rendering Error
« Reply #1 on: July 26, 2016, 10:24:45 am »
What GPU drivers are you using?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Graphics Rendering Error
« Reply #2 on: July 26, 2016, 10:29:04 am »
Is your code inspired by the pong example of the SFML SDK? Have you tried to run it? If the original example doesn't work, then it's most likely a graphics driver issue on your side.
Laurent Gomila - SFML developer

 

anything