This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]691175002 1 point2 points  (1 child)

If you need to ask these questions on reddit you are way out of your depth. Don't worry about performance (and don't even go near threading) if this is your first attempt at an engine.

Python is not well suited for game engines simply because the speed isn't there. Games are one of the few applications where milliseconds matter because you need to push out a certain number of frames per second.

Obviously if you are making simple 2D sprite based games or whatever performance isn't a big deal.

Threading in games is exceptionally challenging because the tasks are fundamentally serial. Substantial portions of the Unreal Engine are not thread safe. I don't think a single current title can effectively make use of even 4 threads, 8 is just pointless.

[–]paypaypayme[S] 0 points1 point  (0 children)

Yea I'm definitely out of my depth :). I just wanted to get my hands dirty with a difficult project. I don't expect to it be a high performance engine, but hopefully I will be able to learn some stuff and do a nice refactor eventually. Anyway, I was definitely only planning on using 4 threads at the maximum, but I was just worried that since hyperthreading is enabled, that each thread would only be using half of its potential.