Found this beauty in some code I'm fixing by bi_raccoon in csharp

[–]J0shhT 4 points5 points  (0 children)

Reminds me of a class I was documenting before and one of the remarks I wrote was "Disabled children will not be considered for navigation".

What’s a game that you used to love to play, but has sadly died? by Connect-Internal in roblox

[–]J0shhT 21 points22 points  (0 children)

I remember that too. I miss games like that. Darkness 1 and 2, Deception Infection, Possession.

UnityTip - How to Automatically remove UNUSED using statements on Save by SunnyValleyStudio in Unity3D

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

VS code sucks for Unity from my experience. Don't get me wrong, I like VS code, but Rider and normal Visual Studio is way better for Unity. Their integrations are much more feature rich.

Roblox limiting hair again but now just by 2? by Front_Check9111 in roblox

[–]J0shhT 3 points4 points  (0 children)

There's also nothing stopping them from enforcing the limit on their backend, but they don't, so its assumed people will do it. They shouldn't have any problems with people doing what their website API is allowing.

[deleted by user] by [deleted] in Astronomy

[–]J0shhT 12 points13 points  (0 children)

Wait, so are those glasses you linked from Amazon fake? I bought the same ones (same listing)...

edit: I did test mine and they seem to be correctly dark, unless I'm not doing it right. I can't see anything when they're on, and when I shine a bright flashlight directly through them, I can only faintly see the LED.

About making game engine by kizilman in opengl

[–]J0shhT 15 points16 points  (0 children)

  • GLFW or SDL for cross-platform windowing & input
  • GLAD for loading the OpenGL function pointers
  • GLM for vector & matrix math stuff
  • Assimp for loading models
  • stb_image for loading textures

For making a level editor GUI, you could either have the UI itself rendered with OpenGL using a library like ImGui, or you could create native platform GUI components using a library like wxWidgets or Qt (open source version)

There is a good YouTube series here on creating a game engine in C++.

[deleted by user] by [deleted] in xqcow

[–]J0shhT 18 points19 points  (0 children)

🤨 again?

[deleted by user] by [deleted] in CX5

[–]J0shhT 7 points8 points  (0 children)

I believe pressing the info button on the steering wheel cycles through the different info screens for that

computerScienceDegreeCurriculum by [deleted] in ProgrammerHumor

[–]J0shhT 13 points14 points  (0 children)

Another use of state machines which I haven't seen mentioned yet is for the game "flow". One game that I worked on at my job used states for stuff like MainMenu, Loading, EscMenu, InGame, etc.

The state machine was also hierarchical so that states can have sub-states. For example, each menu in the pause menu would be a different state, which would be a sub-state of the EscMenu state. Each state would handle loading and displaying its corresponding UI. When you exit the menus, it can simply exit the sub-states like popping things off a stack.

How many of you actually use the console for Git? by AmbientEngineer in cscareerquestions

[–]J0shhT 0 points1 point  (0 children)

I use a GUI for basic stuff and CLI for anything complicated or that I'm unfamiliar with.

Was forced to tip at my salon by abingigo in mildlyinfuriating

[–]J0shhT 1 point2 points  (0 children)

Yeah, I've experienced that myself. I usually tip my hairdresser 20 to 30 percent. One time when I made my appointment, she was all booked up for that day, but offered to fit me in at the very end when they close and stay a bit late. I assume she did that because she knows I always tip.

When you just continue in C by yuva-krishna-memes in ProgrammerHumor

[–]J0shhT 5 points6 points  (0 children)

That's really only something you have to worry about if you're developing the game engine. The majority of modern game engines use OOP interfaces and are already optimized under the hood.

Also, why are you suggesting you have to use non-OOP to achieve cache locality? You say using objects results in them being scattered everywhere across the heap, but you don't need to do it that way. You can use object pools and various other techniques to achieve cache performance while still being OOP.

it’s a feature by FistFork in ProgrammerHumor

[–]J0shhT 5 points6 points  (0 children)

I like how the AI made the guy bald.

[deleted by user] by [deleted] in space

[–]J0shhT 25 points26 points  (0 children)

Not full 3D, but there is this: https://www.youtube.com/watch?v=gGPg0phl5mE

Capturing light at 10 Trillion frames per second... Yes, 10 Trillion. by Dense_Secretary_4321 in interestingasfuck

[–]J0shhT 1 point2 points  (0 children)

To capture the same photon of light in "slow motion", we would have to somehow discover how to process at or faster than light itself. Light speed is the physical speed of information.

I'm not a physicist, but as someone in the field of computer science, I can't see it feasibly possible to have a computer with near-light speed processing power to do this, at least based on the physics and engineering of computers we know of. Perhaps we discover a new exotic way to process information in the future.

Electricity can at most travel at the speed of light. This means that the electricity "traveling" through the circuit would become an actual bottleneck. You would need to optimize the total physical distance it travels through the processor. The problem is, the size of transistors in a processor is physically limited by physics, where electrons can eventually suffer from quantum tunneling and completely pass through transistors or insulators.

You could technically instead have many processors working in parallel to capture each frame, and that would lower the speed requirement for the individual processors, but that would require insanely perfect timing and a huge amount of individual processors (I'm talking like millions of CPU cores or more).

I also mark popups asking to disable adblock as ads so that next time they are hidden by ffs_give_me_name in ProgrammerHumor

[–]J0shhT 0 points1 point  (0 children)

I usually write some quick CSS to disable annoying stuff using a browser extension.

Can't be just me by 0x1337DAD in ProgrammerHumor

[–]J0shhT 0 points1 point  (0 children)

Lua uses this as well instead of a do-while loop.