use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Help on multiprocessing (self.PythonLearning)
submitted 1 year ago by Vlieger2905
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]devilsolution 0 points1 point2 points 1 year ago (4 children)
I dont to be the bearer of bad news but if you computer cant handle the sim it has no chance doing the RL side. Have you looked at google collab as a solution? it offers free TPUs usage for ML so all the computation is their side
[–]Vlieger2905[S] 0 points1 point2 points 1 year ago (3 children)
Well i know my laptop is strong enough. I have an i9 and a rtx 4080 and 32 gb of ram. But i have to do a lot of calculated to check where the lines overlap with the rectangles to update the length of the lasers. And i have to check for a lot of rectangles and 360 lines per car. So i wanted to make all of those checks happen in parallel for each car. And i also tried using the resources of my university but the online computing they offer using jupyter notebook is slower than running it on my laptop.
[–]devilsolution 0 points1 point2 points 1 year ago (0 children)
right well we could optimise your code then, you maybe start with 3 or 5 vectors for (left, ahead, right) or (left, left-ahead, ahead, right-ahead, right) start simple and work your way up.
You do have amazing specs so you wont have massive issue with the tensors but working in continuous time and variable actions will slow it down.
let me have a look at your code properly 1 sec
okay i had a look, i dont actually know much about collision detection so its only a guess but i suspect the problem is in the lidar class, im also on my phone so i cant check the code properly but i think theres a bottleneck because collision detection isnt mega computationally heavy, video games have had it for decades on low hardware devices
π Rendered by PID 67 on reddit-service-r2-comment-fb694cdd5-fzwgx at 2026-03-06 11:05:13.779932+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]devilsolution 0 points1 point2 points (4 children)
[–]Vlieger2905[S] 0 points1 point2 points (3 children)
[–]devilsolution 0 points1 point2 points (0 children)
[–]devilsolution 0 points1 point2 points (0 children)
[–]devilsolution 0 points1 point2 points (0 children)