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

Author Topic: Rendering in a separate thread in OS X  (Read 1161 times)

0 Members and 1 Guest are viewing this topic.

na.mkv

  • Newbie
  • *
  • Posts: 12
    • View Profile
Rendering in a separate thread in OS X
« on: December 30, 2023, 09:10:11 am »
Hello. I was told by ChatGPT that it is very bad idea to make a separate thread for rendering and leave the main one for the events.
I also use MacOS which is double bad idea (as ChatGPT says). Is this true?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Rendering in a separate thread in OS X
« Reply #1 on: December 30, 2023, 01:37:26 pm »
Maybe don't use ChatGPT if you can't judge its output. It's not exactly useful to go around asking if some random answer is correct or not and I'm very much inclined to not answer these questions, as you're just trying to short cut your learning experience, by investing as little time as possible.

You can use macOS just fine with SFML.
You can render from a separate thread, but it's not recommended, especially since you most likely don't have the experience to do it safely. And in practically all cases it's not necessary.
If you want a recommendation: Stick to a single thread.

Alsop, please don't revive 11 year old threads :D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/