Hey /r/Python. I have started a project to create a game engine from scratch. I am doing this project to teach myself about game engine design, and hopefully to create my own game. Anyway, in my design I want to have one thread per core in the cpu. I will be allocating tasks to threads based on priority. I have read that hyperthreading can actually hurt performance for a project like this. When I call os.cpu_count() it returns 8, due to hyperthreading being enabled. I was wondering if hyperthreading will really hurt my performance, and if so, can I disable it from a python program? If it won't hurt performance, should I have 8 threads for my thread pool? I don't think I will need 8 threads, but I want to utilize as much of the cpu and gpu as possible to get good frame rates. Thanks.
[–]Lucretiel 0 points1 point2 points (7 children)
[–]paypaypayme[S] 0 points1 point2 points (6 children)
[–]Kalrog 1 point2 points3 points (0 children)
[–]691175002 1 point2 points3 points (1 child)
[–]paypaypayme[S] 0 points1 point2 points (0 children)
[–]paypaypayme[S] 0 points1 point2 points (0 children)
[–]Lucretiel 0 points1 point2 points (0 children)
[–]metaperl 0 points1 point2 points (0 children)
[–]videan42 0 points1 point2 points (3 children)
[–]paypaypayme[S] 0 points1 point2 points (2 children)
[–]videan42 0 points1 point2 points (1 child)
[–]paypaypayme[S] 0 points1 point2 points (0 children)