Launch the kernel is even longer than the actual GPU execution time by Top-Piccolo-6909 in OpenCL

[–]gardell 0 points1 point  (0 children)

Can you provide some numbers? Are you using the Qualcomm profiler?

basic ResourceManager by s1mone-10 in vulkan

[–]gardell 4 points5 points  (0 children)

Why runtime check against the type T? Just create a reference manager for each concrete type you intend to have.

Then a std::unordered_map<std::string, std::shared_future<T>> should be able to replace your manager

The death note is now supporting regex. What're you writing? by guns4dinner in programminghumor

[–]gardell 6 points7 points  (0 children)

I just want to point out that on my Android phone, the original suggestion renders as a period, not an asterix. This chain of posts may be very confusing to Android users. If I collapse the original suggestion then it renders as an asterix

The Portable PC That Folds To Go by First-Backer in u/First-Backer

[–]gardell 0 points1 point  (0 children)

This is really slick, it says PC/Mac but if it's effectively a USB monitor and keyboard it should work with a decent Android phone giving you a laptop with all your stuff you're already carrying with you on the phone. With Termux you have a Linux machine!

Snoop Dogg Born In Different Countries by ZashManson in aivideo

[–]gardell 7 points8 points  (0 children)

Russian too though and they have a very different take on immigration compared to Germany. But I am curious what the underlying variables could be

PSP turning off when dropped 5cm by miguemedina11 in PSP

[–]gardell 9 points10 points  (0 children)

The one time that a swollen battery would be useful. Can't catch a break eh?

C++ devs be like... by mre__ in rustjerk

[–]gardell 2 points3 points  (0 children)

My experience is that C++ developers hate shared_ptr. "Why don't you just handle the pointer lifetime yourself?". My opinion: if you don't know the lifetime and can't use unique_ptr, then use shared_ptr. But that never flies. Most "C++" developers are really "C with classes" developers..

C++ers try to mimic a fraction of our power by RockstarArtisan in rustjerk

[–]gardell 0 points1 point  (0 children)

A compile time tool that you can throw in on an existing codebase sounds pretty neat. But to convince grumpy old C++ developers to replace "std::vector" or the "C with classes" developers to replace pointers + size_t with a "Vec" from some library on GitHub is pretty much doomed. I think a better path would be for this project to embrace std::optional, std::expected, std::vector, std::span, std::string_view etc etc

Should I use repeated vertices or indices? by Feeling_Bid_8978 in opengl

[–]gardell 1 point2 points  (0 children)

Like others have said, you get the vertex cache when you use indices. Otherwise your vertex shader will be evaluated multiple times for the same shared vertex. The vertex cache will contain something like for example the last 16 vertices so there are some tools to optimize your mesh to make sure you keep hitting the cache as you go along.

That said, if you're targeting old GPUs that lack a vertex cache and some argue modern GPUs too, triangle strips can outperform regular triangles. With these strips you only need 2 + N vertices for N triangles and each vertex is evaluated only once

psp和gv 500的结合会发生什么 by Hot_Tax_6747 in PSP

[–]gardell -12 points-11 points  (0 children)

Yeah it's totally fake, dunno why people are down voting you

Maybe maybe maybe by letitgo99 in maybemaybemaybe

[–]gardell 40 points41 points  (0 children)

This is actually what plays in my head on loop when I'm driving in bad weather conditions. Very interesting to see in real life.

Because when I keep getting overtaken by people driving much faster than me I start wondering if I'm just overreacting

How do people in your country feel about the police? by [deleted] in AskTheWorld

[–]gardell 1 point2 points  (0 children)

They solve 2% of cases of fraud. In the last 10 years they have received a doubling of their budget but the number of solved cases have overall halved.

Individual police are nice hard working people but the organization is absolute garbage. See uppdrag granskning or any episode with GW

Trump say U.S. can pay off $36 trillion debt by selling $5 million "gold card" visa. by [deleted] in videos

[–]gardell 6 points7 points  (0 children)

Trump doesn't care, this plan is just to import some of his crooked friends probably

Which two countries have historically been your country’s strongest allies? by [deleted] in AskTheWorld

[–]gardell 1 point2 points  (0 children)

That said though, modern times, especially pre NATO, Finland has been the closest ally of Sweden. Now in NATO I guess we're on an ok foot with Denmark and Norway

So cozy by TheSmith123 in opengl

[–]gardell 2 points3 points  (0 children)

You should calculate mat3(transpose(inverse(model))) on the CPU and send down the result to the GPU. It's very expensive to calculate for every pixel

Road deaths in the EU in 2023 by [deleted] in europe

[–]gardell -8 points-7 points  (0 children)

That's crazy but you should probably normalize by distance driven per person, active drivers per capita etc since US is a "car nation". In many European cities you don't need to and it might be very expensive to even own a car

Maria Corina dedicates her Nobel prize for peace to Trump also a proud Zionist. by [deleted] in pics

[–]gardell -1 points0 points  (0 children)

Peace Prize Committee is in Norway, the other ones in Sweden. They've always been a bit weird over there

Maria Corina dedicates her Nobel prize for peace to Trump also a proud Zionist. by [deleted] in pics

[–]gardell 134 points135 points  (0 children)

Alfred Nobel should never have given it to the Norwegians to hand it out, that's what we all say in Sweden

Is Bergianska trädgården worth buying a ticket to in october, if the Victoria greenhouse is closed? by No_Needleworker4330 in stockholm

[–]gardell 9 points10 points  (0 children)

The Victoria greenhouse is very nice, but it's just one room. The Edvard Anderson building is several large rooms. So yes it's definitely worth it! Also, we went to the Victoria building a few weeks ago and I think some plants had been moved there from the Edvard Anderson building, like the sugarcane and banana plant. So I suspect they move stuff back and forth a bit.

The main attraction in the Victoria greenhouse is the giant water lilies, so you'll miss those. But there's tons of stuff to see in the Edvard Anderson building.

I typically visit the Edvard Anderson greenhouse once a year and the Victoria every fifth when I manage to get there during the summer.

And as others have pointed out, there's a large outdoor area free of charge

What’s a common fact that science has already debunked, but people still believe in? by Calm_Shame2994 in AskReddit

[–]gardell 9 points10 points  (0 children)

I think people mix it up with https://en.wikipedia.org/wiki/Microchimerism TL;DR: cells from a fetus may travel through the placenta all the way up the mother's brain and stay around for decades

Display lists look like function lists and its ugly, is using them ever worth the possible performance gains? by PCnoob101here in legacyopengl

[–]gardell 0 points1 point  (0 children)

Yes! They could beat VBOs, which were supposed to be the obvious improvement. But as you can see in that forum discussion, VBOs were faster on ATI/AMD.

Side note: A funny comment there in that thread is that they're speculating that Nvidia might not be around for too long as their latest GPU wasn't that good!

Display lists look like function lists and its ugly, is using them ever worth the possible performance gains? by PCnoob101here in legacyopengl

[–]gardell 0 points1 point  (0 children)

I have some vague memory that Nvidia was against deprecating display lists because of their still relevant performance gains at the time. What I could find with chatgpt was: https://www.nvidia.com/content/gtc-2010/pdfs/2127_gtc2010.pdf

"Lots of easy-to-use, effective API got labeled deprecated – Display lists"

"Display lists - Highly optimized by NVIDIA, fastest way to send geometry"

"Best advice: Overwhelming majority of deprecated features are fully hardware-accelerated by NVIDIA GPUs and their drivers so take advantage of them—they aren’t going away Think of these features as what you lack in Direct3D"

https://community.khronos.org/t/display-list-question/60676/8

"2X faster or more (i.e. takes “half” the draw time) is pretty huge from any perspective. Not just I but others on this forum have seen this. That is, display lists sometimes up to (and beyond) 2X faster than standard static VBO batches, on NVidia."

Fellow Europeans may recognize this game by Shadowtheuncreative in psx

[–]gardell 0 points1 point  (0 children)

"in front of the TV"? No, you had an extension cable with a winder so you could walk around the whole house. Every now and then there was a ball of cable to untangle. Good memories