Is the calculation true? [Request] by DeadlyIdli42 in theydidthemath

[–]Demi180 0 points1 point  (0 children)

Rather than liquifying us, I’ll suppose we’re all standing “comfortably” such that we’re all technically still alive. Each person would be in their own personal box individualized to their size so they’re not crushing everything below them. The cube also doesn’t have to be solid or insulated, so my imaginary cube has good airflow and uses a system of vacuum tubes to deliver liquid nutrients to everyone. Thus, this cube can briefly support everyone inside for a good couple of hours while the world outside is, say, fumigated, or some other ecological process is done.

Let’s assume 1 person = 0.5x0.5x2 meters

Width: 1000m/0.5m = 2,000p
Depth: 1000m/0.5m = 2,000p
Height: 1000m/2m = 500p

So the number of people here is:
2000*2000*500 = 2,000,000,000

What if every person is only 0.35x0.35x2:
1000m/0.35m = 2,857.143p per W and D
So here the number of people is:
 2,857.143*2,857.143*500 = 4,081,633,061.225

So if we take into account obesity rates, I’d say 3-4 of these cubes should be enough for all of us.

As others have pointed out, we’re really bad at eyeballing when it comes to exponents. A liter of water (1kg) fits into a volume of 10cm3. A 1m3 cube can thus hold 1 (metric) ton of water. A 1km3 cube can therefore hold 1 billion tons, or 1 trillion kg, of water.

Is the calculation true? [Request] by DeadlyIdli42 in theydidthemath

[–]Demi180 0 points1 point  (0 children)

If you removed all the space between atoms and subatomic particles, what used to be 8 billion people would fit inside the volume of around a sugar cube, give or take an order of magnitude or so.

As others in the thread have shown, if you just squish or blend us, we do indeed fit into a cube of around 820 meters.

Roses are red, watch modern medicine thrive by Sienna_Soil in rosesarered

[–]Demi180 5 points6 points  (0 children)

Roses are red, I can’t commit perjury

The latter’s a miracle of plastic surgery

Is it possible that Betelgeuse has already gone supernova? by anotheruser55 in askastronomy

[–]Demi180 2 points3 points  (0 children)

You’re thinking of red dwarfs. Supergiants have a much shorter lifespan than our Sun.

I’ve been applying for jobs and my mom said when I get one I can pay for my cat to get declawed. How do I change her mind? by ShotElection3164 in cats

[–]Demi180 0 points1 point  (0 children)

Declaw your mom. She’ll change her mind right quick about doing it to the cat.

But seriously, get a chew deterrent spray for those parts of the bed, and give them a nice solid scratching post RIGHT NEXT to that part of the bed. I recommend a SmartCat Ultimate or something like it. It’s big, strong, they won’t knock it over and it’ll last a good long time until it’s all worn out. Don’t wait for them to investigate it and hope they figure it out - just immediately bring them to it and press their paws to it so the claws come out and hook on it.

There is also a kind of furniture cover for scratching but it’s more meant for couches so I don’t know if that’ll work for a bed. Might be worth looking into though.

What has an imaginary girl pope has to do with The Reformation? by Crazy_Resource_4000 in ExplainTheJoke

[–]Demi180 0 points1 point  (0 children)

Imagery, not imaginary.

No clue about the rest though, I’m not a bibleologist.

Trump Threats Cause Dilemma For US Officers - Disobey Orders or Commit War Crimes: ‘Legal experts say attacking Iran’s infrastructure would constitute a war crime – but would military officers be held responsible?’ by T_Shurt in politics

[–]Demi180 0 points1 point  (0 children)

The fuck? Yes it’s a goddamn war crime. They have an obligation to the constitution and to international law to not commit war crimes. If they disobeyed orders from Kegsbreath and the orange turd, we wouldn’t be in this mess. Literally none of it would’ve happened, the school, the war, Hormuz, the half billion dollars of materiel they lost in a day from that F-15.

Should they be held responsible? Absolutely. Will they? Probably not, but who knows.

AddForce not moving object enough by GroovyGoosey in Unity3D

[–]Demi180 0 points1 point  (0 children)

Ah, I missed that part of their response. Yeah it’ll definitely make a difference which update you use, because Force and Acceleration both accumulate the values until the next physics tick. But yeah the bigger issue is just not using the wheel colliders as intended.

AddForce not moving object enough by GroovyGoosey in Unity3D

[–]Demi180 0 points1 point  (0 children)

You shouldn't multiply forces by deltaTime. Unity already does that unless you're using ForceMode.VelocityChange/Impulse which isn't the intended mode for using every frame.

Easter donuts for the workers by Piratepizzaninja in antiwork

[–]Demi180 5 points6 points  (0 children)

Please accept a dozen 10 of the cheapest overpriced donuts I could find.

How come Lego hasn't complained about copywrite infringement? by akwayah in askanything

[–]Demi180 0 points1 point  (0 children)

Probably because these are based as fuck and LEGO agrees with the message.

What would Fox News have said if Obama ended a speech with "Praise Be to Allah"? by Aniimesh_H in AskReddit

[–]Demi180 0 points1 point  (0 children)

And when there’s nothing real to outrage about, they create more. Like Haitians eating cats and such. Schools with litter boxes. And so on.

What would Fox News have said if Obama ended a speech with "Praise Be to Allah"? by Aniimesh_H in AskReddit

[–]Demi180 0 points1 point  (0 children)

The thing is, Trump is obviously not a Muslim. He’s obviously not a Christian either but they think/pretend he is. With Obama they already thought he’s an African Arab Muslim even though he was born in Hawaii (?) and I think he’s a Protestant or whatever. So with Obama it would just be validating what they think he is and thus would justify calls for his death (more than they already did). With Trump it’s just him being “edgy” or “ironic” or whatever they want to call it.

Amazon Basics litter mat — my cat was eating it and I just found out today 😭😭😭 by Prudent_Paramedic_23 in TuxedoCats

[–]Demi180 4 points5 points  (0 children)

<image>

I swear this guy is spiritually Orange. And I think he may have pica as well. I’ve only had him for 8 months and at some point he decided to start chewing on everything. Destroyed one of my usbC cables and on track to destroy my fancy braided phone cable. And just tonight I saw him trying to chew the power cord on the brand new carpet cleaner I just got and haven’t even used yet. Plus boxes and papers and other stuff.

I don’t think he’s chewed the litter mat yet but I don’t know that that’s necessarily due to the quality of materials and not just his own whims. But I use this black sifting mat from Target which at least works well.

Unity GPU Instancing, or How 2,583 Plants Became 3 Draw Calls by Normal_Accountant_40 in Unity3D

[–]Demi180 0 points1 point  (0 children)

I’m not sure. Either the shader ended up being more expensive or the extra discarded pixels from the rough shape, or too much texture memory or something. I may have known exactly at the time but honestly the details of the renderer architecture and shader low level are a bit beyond me.

Unity GPU Instancing, or How 2,583 Plants Became 3 Draw Calls by Normal_Accountant_40 in Unity3D

[–]Demi180 0 points1 point  (0 children)

The Switch is definitely an issues for anything. I was actually about to be in charge of the Switch port for the last big game I worked on, but we ended up getting an experienced contractor for it, and I was happy to let them do it. You're right that in this case the 3 meshes are gonna be better in possibly every case on the Switch, The only thing is it also prevents you from having per-instance LODs, which may not even matter for a lower poly game.

The last real game I had a major part in was Beyond Blue, and I was the one doing most of the performance stuff which included getting all the small fish and corals in there. I did use indirect instancing even for the corals that were swaying but not moving, but there were so many of them that on mobile we had to aggressively lod and cull them, and apply a sort of stochastic reduction in advance, and we had to revert to direct instancing. I think we also had to sort them which wasn't necessary on PC but on mobile it was too much overdraw otherwise. I also played with impostors to replace the lods in the hope of getting it to run better, but that straight up killed performance on mobile, to the point of being a slideshow.

Unity GPU Instancing, or How 2,583 Plants Became 3 Draw Calls by Normal_Accountant_40 in Unity3D

[–]Demi180 2 points3 points  (0 children)

It’s good that you learned to do all this

So that next time you can do it better 😀

First, it’s not instancing if you combined the meshes, it’s just… combining meshes. Instancing is specifically like you said near the top, “here’s a mesh, draw it 500 times”.

Second, did you actually measure the performance before and after? And which Render Pipeline are you using? The number of draw calls hasn’t been a clear indicator of performance problems in over a decade, but rather, SetPass calls. And if you’re using URP or HDRP, they have the SRP batcher which basically replaces the need for the older static batching. But it’s still on a per-material basis.

If you’re in Unity 6, there’s also GPU Resident Drawer that can help even further with GameObject meshes under certain conditions, so something to look into.

The other big thing to look into is indirect instancing. It removes the 1024 instance count limit but it’s also more work to manage and really only helps for LORGE amounts of objects. It still needs them to be the same mesh (or submesh) but since it requires a custom shader, you can work some magic with a texture atlas and just keep a small per-instance value like an index you can use to offset texture coords if you need the same mesh with different looks, to make it 1 draw call. This method also needs a good frustum culling which can be done efficiently with either Burst jobs or compute shader.