Cache lines are 64 bytes though? Pages are 4k.
- 0 posts
- 21 comments
Hahaha. Most here making excuses why they don’t read manuals.
I’m using a ps2 keyboard because the usb one died.
They kept talking it was because address exaustion, and IANA sold all the remaining blocks they had…
I tested it at the time. Ran nmap ping scan across a block all night with zero results. IANA sold the internet
- 1 year
Unrelated but there is microui, a 1100 loc library in ansi C for a basic UI.
- gens@programming.devto
Programming@programming.dev•AI Models from Google, OpenAI, Anthropic Solve 0% of ‘Hard’ Coding Problems
1 yearIt’s a rubber ducky that talks back. If you don’t take it seriously, it can reach the level of usefulness just above a wheezing piece of yellow rubber.
Yea, textures are the biggest thing (unless there’s video). But don’t underestimate vertices, even when using strips. Unity, i think, just ships textures as BCn, meaning 1MB per 1k texture (would be 3-4MB raw). It’s even better for the gpu then raw. Then there’s normal maps, etc.
Another thing is lighting data, be it some textures, probes, or whatever. That can also take up plenty of space.
Less triangles and smaller textures. Crt monitors had less resolution and practically built-in anti-aliasing so they could get away with (and had to) “worse” assets.
Also since ssd-s have become mainstream unity uses less compression so it would load relatively faster.
Basically because monitors got better, standards got higher, competition got fiercer, storage got bigger and faster, etc.
And it’s not like there weren’t shitty games before, just everybody forgot about them.
I like how the game Banished is made. From a requirenments/looks ratio it is IMO great. One guy made it. Ghosts of Tsushima also looks amazing and is great from a techical perspective, but it is heavy.
- gens@programming.devto
Reddit@lemmy.world•I get banned from Reddit for "suggesting violence" by stating Elon Musk's assets should be liquidated, meanwhile:
1 yearOfc it’s wrong. You can be peaceful and harmless.
Musk is a moron.
Edit: The more I think about it, the wrong-er/stupider it gets.
Cheaper hobby then electronics.
- gens@programming.devto
Linux@programming.dev•A petition has been created by an Austrian EU rep. to replace Windows with GNU/Linux in all Europe
2 yearsThat is mostly false. Most of the code that faces the network is the same. As is most of the background running code. Linux is still more secure.
Lets say you use a variable named abcd in your function. And a variable named abcb in a for loop inside the same function. But because reasons you mistakenly use abcd inside that loop and modify the wrong variable, so that your code sometimes doesnt work properly.
It’s to prevent mistakes like that.
A similar thing is to use const when the variable is not modified.
- gens@programming.devto
Gaming@beehaw.org•Switch performs better running games through an emulator emulating the switch than natively.
2 yearsContrary to popular opinion, i’m gonna guess graphics driver. Specifically the shader compiler.
- 2 years
You can get lower latency with vulkan then with opengl. I remember some emulators (gamecube?) talk about why they implemented vulkan.
- gens@programming.devto
Programming@programming.dev•What are some of the best optimizations you applied to your code?
3 yearsI was playing bloons td back when it was flash, in firefox. It was sometimes too slow. So i fired up perf and found out what horrors flash player was doing with memcpy. One byte memcpy, completely unaligned memcpy.
So i wrote an ssse3 memcpy that could do one byte unaligned with xmm registers. It was 30% faster then whatever glibc was doing and made the game playable. Was planing to submit it to glibc, but they came up with something different that was just as fast.
Half of programming is writing code, the other half is thinking about the problem. As i learn more about programming i feel that it is even more about solving problems.
Data oriented design is the new thing, much different from that.
OOP, other then smalltalk and maybe few other languages, is somewhat different in practice from the original idea. I can dig up a great talk from Alan Kay on OOP if you want. Actually i want to watch it again so i’l edit it in here when i find it.
Edit: https://www.youtube.com/watch?v=fhOHn9TClXY Great talk, as far as i remember.
That said, we often have to process seemingly unrelated data together which is slow with the model of passing data arround (even when by reference). When OOP was invented memory access was as fast as actual operations on it, while today memory is much slower then processing. With caches and simd and such, it is much faster if everything is an array. Peronally i’m not a fan of OOP because of the “everything has to be an object” mentality, but do whatever you like.





“Fatal error: Unable to find local grunt.” is a real error.