4 ms·
Right, I don't mean to downplay the significance of 1%, but aren't there many ways to win or lose 1%? More specifically perhaps, are there so few GCed pointers
by hayley-patton 4y ago
Right, I don't mean to downplay the significance of 1%, but aren't there many ways to win or lose 1%? More specifically perhaps, are there so few GCed pointers that a faster collector cannot recuperate that 1%?
moonchild's suggestion to monomorphise against GC/explicitly managed pointers might reduce that figure lower; evidently you know D programs better than I, but it doesn't seem unreasonable that the 1% can be won by a faster GC.
- WalterBright 4y ago> More specifically perhaps, are there so few GCed pointers that a faster collector cannot recuperate that 1%? Of course, it depends on your coding style, but yes, that is generally true.
- kohlerm 4y agoA 1% slowdown is a ridiculous low number IMHO. I would argue that almost no program is within 1% of the optimal speed (however you define it). Therefore practically it does not matter. If you think it matters then the consequence would be that you write everything in Assembler.
- WalterBright 4y ago> Therefore practically it does not matter. You won't notice it on your desktop. But you will notice it in cases I mentioned. Top shelf games also are not going to give up that 1%, or so the game devs tell me.
- pjmlp 4y agoAnd yet even the likes of Sony and Nintendo are working in major titles with Unity. Unity is also the official developer SDK for Microsoft's HoloLens Virtual Reality Toolkit.
- jcelerier 4y agoAnd 70 million people go eat Mickey D's every day, doesn't make it good in any way. Whenever I play unity games (rarely to be honest as I play maybe 5-20 hours a year nowadays, but this has been consistent) I brace myself for a laggy experience. Most people don't care about this it seems but it really makes me want to close the game when there's a laggy scene (and definitely put the tech used in my blacklist).
- pjmlp 4y agoI have the same happening to me with C and C++ games, so it isn't a given that the language along is the cause, rather the ability of the programmers.
- jcelerier 4y agoThe very vast majority of native games I played don't have the kind of lag that unity games have (and seem to do much more things). Only very bad one I could remember was Neverwinter nights 2.. that one was really unplayable even on god-tier computers
- pjmlp 4y agoI would still blame the programmers. Doing the game in C++ certainly hasn't helped Cyberpunk 2077 performance and being bug free.
- jcelerier 4y agowhat Cyberpunk 2077 does is incomparable with the games I'm mentioning having lag in unity, which are slow-paced 2D games
- kaba0 4y agoOr maybe you just don’t notice it with unity games that work decently? A classic case of confirmation bias.
- tomcam 4y ago> Therefore practically it does not matter. Uh you know who’s so patiently answering your questions, right? My guess is that he’s been world famous at this since you were a twinkle in your daddy’s eye. He’s had a minute to think about it...
- saagarjha 4y agoBlind appeals to authority are not appropriate here. It’s pretty clear that Walter has staked out an unreasonable position, regardless of how renowned (and rightly so!) he is for his work on D.
- tomcam 4y ago> Blind appeals to authority are not appropriate here. True! Duly upvoted. Although I feel his arguments are closely reasoned and don’t agree with your point. And the person I responded to brought nothing you to the table. Where is it that Walter is obviously wrong, by the way? Not trying to be argumentative. I just did not see the holes in his argument that you do.
- WalterBright 4y agoIf my position is unreasonable, why hasn't the C Standard endorsed garbage collection? Or the C++ Standard? Rust's entire reason for existing is to find a way to make non-gc memory safe.
- pjmlp 4y ago