I've been using Arch for about a year now and honestly, I haven't ran into any stability issues. I've had more things come broken out of the box using Ubuntu, with Arch things are only as broken as you make them.
I won't lie, I've been on both ends, if it's something that's interesting to me I'll go the extra mile. But if it's something that's a pain I will do the absolute minimum.
No sense burning yourself out over something that you're not into. That being said, I'm pretty sure I'll be sticking to developing stuff on the PC. Working with devkits is just, ugh...
Well most people just went with rendering the mandelbrot set.
I'm sure the threading performance could be improved since this was really my first time using it outside of isolated lab exercises, so there's a lot of sanity checks. The issue I've had with not securing the queue in my implementation was that eventually two threads would try to pop the same task from it which would result in a segmentation fault.
And yeah, with texture mapping and grouping tasks could probably offset the overhead but to be honest I would prefer to first finish the engine and then rewrite the thread pool. Just like with premature optimization, premature threading is root of all evil.
I've used a thread pool that started as many threads as std::thread::hardware_concurrency reported. The thread pool also has a task queue and with the use of conditional variables I've set the worker function the threads ran so that if the queue was empty they would sleep.
So when the rendering portion of the application came out, they raycaster would create rays/tasks by passing information about the source and the direction of the rays. Once the queue would start filling up the threads would start calculating how far the columns are, what color to use and if they should be shaded (North/South sides use full brightness while West/East are half brigthness). So in the end you'd end up with two vertices representing a vertical line. These were then put into a vertex array and once the task queue was empty all the threads idle again the main thread would get woken up and the screen would get drawn then.
Roughly something like this:
Thread pool with task queue and sleeping threads
Main thread starts queing up tasks/rays
Worker threads start calculating column vertices / Main thread sleeps during this step to prevent displaying a partial render
Worker threads finish -> Wake up main thread
Main thread calls the SFML function for drawing the vertex array
Though as it is, multithreading didn't prove to improve performance, mostly because most of the time was spent waiting on mutexes to unlock. If I remember right from benchmarking if you calculated how much time was spent on each ray, it took three times longer when doing it multithreaded than doing it single threaded. So when comparing the framerates there was a 30% loss in speed when switching to the multithreaded mode (I've made it so you could switch between the two at runtime).
The project really started because I had to do an assignment on multithreading and because I'm on a games development course I decided to go with raycasting since it's trivially parallelizable. So even though it's a learning prototype for now it is something that I would potentially like to make/rewrite into a complete game engine.
I'd been pretty interested since I was thinking of doing something similar to the Doom or the Build engine. I've recently made a prototype of a Wolf3D-like raycasting engine in C++ using SFML.
I still have to do texture mapping in it but I'm at the point where I'm unsure if I should continue with the project because with my current implementation of raycasting it seems getting non-orthogonal walls at arbitrary heights would require a lot of hacks. And there is only so much you can do with a grid based map.
I'm also unsure if I should continue using SFML. It's great for prototyping stuff but I'm not sure how suitable is it for "real" game development?
Well, turns out the reason TLP is not working because there seems to be an issue in applying autosuspend options with the current 14.6 Linux kernel. https://github.com/linrunner/TLP/issues/334
I've been using Arch for about a year now and honestly, I haven't ran into any stability issues. I've had more things come broken out of the box using Ubuntu, with Arch things are only as broken as you make them.
You can't derive birth dates if all you have is 4 born in 1989, 2 in 1990, 3 in March, 1 in June, 2 in September, days: 2, 5, 12, 2x 22, 26.
You don't store individual dates.
That doesn't work. I get errors that the destination folder/file doesn't exist.
All it does is create the gz files in the source folder while deleting the original files.
Joke's on them, I already have one from when people cheated by idling.
I won't lie, I've been on both ends, if it's something that's interesting to me I'll go the extra mile. But if it's something that's a pain I will do the absolute minimum.
No sense burning yourself out over something that you're not into. That being said, I'm pretty sure I'll be sticking to developing stuff on the PC. Working with devkits is just, ugh...
Well most people just went with rendering the mandelbrot set.
I'm sure the threading performance could be improved since this was really my first time using it outside of isolated lab exercises, so there's a lot of sanity checks. The issue I've had with not securing the queue in my implementation was that eventually two threads would try to pop the same task from it which would result in a segmentation fault.
And yeah, with texture mapping and grouping tasks could probably offset the overhead but to be honest I would prefer to first finish the engine and then rewrite the thread pool. Just like with premature optimization, premature threading is root of all evil.
I've used a thread pool that started as many threads as std::thread::hardware_concurrency reported. The thread pool also has a task queue and with the use of conditional variables I've set the worker function the threads ran so that if the queue was empty they would sleep.
So when the rendering portion of the application came out, they raycaster would create rays/tasks by passing information about the source and the direction of the rays. Once the queue would start filling up the threads would start calculating how far the columns are, what color to use and if they should be shaded (North/South sides use full brightness while West/East are half brigthness). So in the end you'd end up with two vertices representing a vertical line. These were then put into a vertex array and once the task queue was empty all the threads idle again the main thread would get woken up and the screen would get drawn then.
Roughly something like this:
Though as it is, multithreading didn't prove to improve performance, mostly because most of the time was spent waiting on mutexes to unlock. If I remember right from benchmarking if you calculated how much time was spent on each ray, it took three times longer when doing it multithreaded than doing it single threaded. So when comparing the framerates there was a 30% loss in speed when switching to the multithreaded mode (I've made it so you could switch between the two at runtime).
The project really started because I had to do an assignment on multithreading and because I'm on a games development course I decided to go with raycasting since it's trivially parallelizable. So even though it's a learning prototype for now it is something that I would potentially like to make/rewrite into a complete game engine.
I'd been pretty interested since I was thinking of doing something similar to the Doom or the Build engine. I've recently made a prototype of a Wolf3D-like raycasting engine in C++ using SFML.
I still have to do texture mapping in it but I'm at the point where I'm unsure if I should continue with the project because with my current implementation of raycasting it seems getting non-orthogonal walls at arbitrary heights would require a lot of hacks. And there is only so much you can do with a grid based map.
I'm also unsure if I should continue using SFML. It's great for prototyping stuff but I'm not sure how suitable is it for "real" game development?
Well, turns out the reason TLP is not working because there seems to be an issue in applying autosuspend options with the current 14.6 Linux kernel. https://github.com/linrunner/TLP/issues/334
I am using Blueberry however the only options it gives me is Connect/Disconnect or enter Mouse settings.
I've temporarily installed Blueman and repaired and trusted the mouse. Hopefully it'll work now.
End of this list.
Back to top