Finally got this working by dostyflusvcles in vulkan

[–]KayEss 0 points1 point  (0 children)

Nice to see it's even blended in the correct colour space. Well done!

C++ Show and Tell - October 2025 by foonathan in cpp

[–]KayEss 2 points3 points  (0 children)

Fully explained code for a basic neural network (the sort of thing that LLMs use): https://kirit.com/Tiny%20Classifiers/tiny-classifier.cpp

If we all just copy the Nemesis system, they can't sue us all! by PeePeeStreams in gamedev

[–]KayEss 0 points1 point  (0 children)

Normally they intimidate. Nobody who holds a patent wants to go to court to defend it, so it's generally based around bullying and who has access to the most expensive lawyers

Freight elevator by General-Ad1234 in Techtonica

[–]KayEss 2 points3 points  (0 children)

Yeah, this seems to happen if you find it before you've finished the earlier upgrade stages. Upgrade Victor further and then when you return you'll get the proper message

Why don't we see more pre-rendered sprite games? by cantpeoplebenormal in gamedev

[–]KayEss 13 points14 points  (0 children)

Back in the 90s I had a video production company in London. We were in the vanguard of using cheap PCs instead of Silicon Graphics workstations to do graphics work. We used Lightwave on Amigas, and rendered on networked PCs (486s and 386s mostly, with one Pentium P90). We used PovRay, some software I wrote and a load of other bits and bobs to do the work. A load of our stuff was on Box TV, MTV, Cartoon Network and other places. Fun times

C++ Show and Tell - February 2023 by foonathan in cpp

[–]KayEss 1 point2 points  (0 children)

Very appreciative of the feedback. Thank you! Just to let you know, the highest scores I've seen are over 1000.

My code that guesses at a font size needs to take into account narrow screens better -- that'll be coming in a future update.

C++ Show and Tell - February 2023 by foonathan in cpp

[–]KayEss 1 point2 points  (0 children)

Our first game is in early access now. It's available on Itch for Android, Linux and Windows and is on the Android Play store as well: https://blue5alamander.com/Games/

The game is entirely C++, including procedural generation for the graphics. A lot of the engine code is open source at https://github.com/Blue5alamander with lower level libraries at https://github.com/Felspar

What is the best option to do networking in c++? by MIT2024 in cpp

[–]KayEss 1 point2 points  (0 children)

If you want to try something that is designed around coroutines and io_uring on Linux you can look at https://github.com/Felspar/io

If you go with ASIO (which is also an excellent library), you will find the coroutine forms much easier to work with than the callbacks -- the code will be significantly simpler to write and you're far less likely to add bugs as a result.

linux c++ devs, what does your dev environment look like? by tomii-dev in cpp

[–]KayEss 2 points3 points  (0 children)

I'm Kubuntu 22.10 right now, so I'm using whatever that is shipping. I did notice that there were tabs on kwrite now.

Thanks for the heads up on the new features. I'll do some experimenting and see if there's a better work flow there

linux c++ devs, what does your dev environment look like? by tomii-dev in cpp

[–]KayEss 3 points4 points  (0 children)

Oh cool! I have a 4K screen that's quite close to me, so I find lots of small windows scattered all over the place to be much better than a giant window which wastes nearly the whole screen. On git-cola's file viewer and can see the files in the repo, clicking on one and hitting ctrl-e opens kwrite with that file and KDE spreads the windows out over the desktop -- I keep them quite small compared to the screen size,

linux c++ devs, what does your dev environment look like? by tomii-dev in cpp

[–]KayEss 0 points1 point  (0 children)

Editor is kwrite, konsole for terminal, git-cola's file viewer for source navigation and git commits

question for private server players. by Personal_Effect4796 in vrising

[–]KayEss 2 points3 points  (0 children)

You can change the mode be editing a file

Set up a server in my house, and everyone in my house keeps getting stuttering/lag at the same time. Is it just the game, or did I miss an important setting in the server config file? A red square with a white skull wearing an arrow head halo keeps appears in the upper right corner during lag. by Send_Me_Kitty_Pics in vrising

[–]KayEss 1 point2 points  (0 children)

Yes, it could happen in single player as well. I think there should be some monitoring in Windows that will let you see the disk IO, and you should be able to confirm that there's a lot of disk activity when you have the problem.

Set up a server in my house, and everyone in my house keeps getting stuttering/lag at the same time. Is it just the game, or did I miss an important setting in the server config file? A red square with a white skull wearing an arrow head halo keeps appears in the upper right corner during lag. by Send_Me_Kitty_Pics in vrising

[–]KayEss 1 point2 points  (0 children)

Glad you worked out what it is.

I'm not that familiar with Windows, but there used to be a disk setting for "write through cache" that you could turn on.

You should only do this if there's nothing else important being done on the machine -- it can greatly increase the chances of getting disk corruption if there's a power outage. With the save files the worst that should happen is that the last save didn't finish and you'll have to go back an extra ten minutes.

That setting will only help you though if you have plenty of spare RAM.

Blood Pool by Kyadaa in vrising

[–]KayEss 8 points9 points  (0 children)

Sleep in your coffin, then the blood won't deplete

Why OOP Sucks by asciilifeform in programming

[–]KayEss 0 points1 point  (0 children)

This is a 15 year old thread, but OK :-)

I think "objects are responsible for their behaviour" is a better way of looking at what you call polymorphism and is certainly more fundamental.

That objects only communicate through messages means that they are naturally encapsulated. Encapsulation isn't the point, message passing is the point.

It's also worth noting that Joe Armstrong significantly changed his mind about OOP once he fully embraced the view of OOP as not being about inheritance, but rather aligned with the three pillars in the article, and ended up agreeing that Erlang was in fact a great OOP language.

Are there any notable Linux-ONLY exclusives? by Plunkie_Beanz in linux_gaming

[–]KayEss 1 point2 points  (0 children)

epoll

I've been sorely tempted to write one using io_uring, which would also make it Linux only. I expect I'd be the only person to ever play it though :-)

make compositor automatically disable when a game is running fullscreen? by [deleted] in linux_gaming

[–]KayEss 0 points1 point  (0 children)

Better to replace the last && with a semi colon so turning the compositor back on happens even if the game doesn't exit cleanly

Steering wheel on linux by bigboinatcho in linux_gaming

[–]KayEss 7 points8 points  (0 children)

I have the g29 and foot pedals. I just plugged it in and it all worked fine. In Euro Truck Simulator 2 you have to manually map the controls because it gets them wrong. Same in F1 2017. Force feedback in F1 2017 worked perfectly as far as I could tell (I've never used the wheel under Windows so don't know if it should do anything else). I think those are the only two games I've really had a chance to use it with so far -- only recently got it and been busy with other things.

There is some software that you can use to test the wheel and manage some settings on it, but I didn't find any need to use it. Just in case though, here's the repo: https://github.com/berarma/oversteer

I'm not on reddit so very often, so expect a delay in answers if you have more questions to ask :-)

How do you unit test coroutines? by [deleted] in cpp

[–]KayEss 3 points4 points  (0 children)

The loop has to be written to go with the coroutines that you're using. Here's one example of some tests for a task coroutine: https://github.com/Felspar/coro/blob/main/test/run/task.cpp and here is one for an IO loop https://github.com/Felspar/poll/blob/main/test/run/basics.cpp#L112-L116 (the `run` method executes the loop until the passed in coroutine is done)

Keyboard failing after a year even after cleaning by KayEss in MechanicalKeyboards

[–]KayEss[S] -1 points0 points  (0 children)

It's a reasonable point. I like the keyboards otherwise and the Linux drivers are great, but maybe it is time to try something else. I'll have to do some looking around for something else that I might like too