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

Author Topic: Common mistakes  (Read 2346 times)

0 Members and 1 Guest are viewing this topic.

dmitry_t

  • Newbie
  • *
  • Posts: 17
    • View Profile
Common mistakes
« on: March 23, 2018, 07:51:08 am »
As far as I can see there is a set of common mistakes done when writing SFML based applications.
Is there a page describing the most common of them? If there is no, it is probably a good idea to gather explanations in a single place. Then it'll be possible to simply reply with a reference to a corresponding section.

These are the most common AFAICS:

- static SFML object initialization
- referring to a destroyed object
- not handling events
- drawing once out of the main loop
etc.

Let's list more in comments.
« Last Edit: March 23, 2018, 07:55:03 am by dmitry_t »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Common mistakes
« Reply #1 on: March 23, 2018, 01:24:12 pm »
We have a big FAQ with space to extend it. Unfortunately most people running into these common issues, won't be checking the FAQ the same way they aren't checking the 100 forum posts describing the same problem. But if we have more of the problems described in the FAQ we'd have a link to post for those people, instead of repeating the same answers.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/