Blackthorn

joined 1 year ago
 

I guess the question is straightforward. I'm creating a simple 2D game with a few animation and 30 or 60 fps are more than enough. I'd like to cap the fps to reduce power consumption on my laptop when testing my own game. I can manage that from the nvidia control panel, but I can do that from ingame code? I can see many games provide a fps cap option. How do they achieve that? Sleeping/calling Sdl_delay doesn't seem a great option and neither is active waiting while checking for passed time. Is there an hardware mechanism I can block to?

[–] Blackthorn@programming.dev 5 points 3 weeks ago

I understand, it would probably make sense narratively, but he would receive a lot of backslash.

[–] Blackthorn@programming.dev 1 points 3 weeks ago

So, it's still not here :P

[–] Blackthorn@programming.dev 29 points 3 weeks ago (2 children)

Yeah, he basically spoiled the ending with the tv show and now he needs to come up with a new one. Not that he actually will. He'll never finish the series

[–] Blackthorn@programming.dev 14 points 3 weeks ago

He probably couldn't see the tv due to the big pile of money sitting between him and the screen covering his view.

[–] Blackthorn@programming.dev 9 points 3 weeks ago* (last edited 3 weeks ago)

Lol, I'm not exactly a fan of the series (I only really liked the first two books) but this is ridiculous. At this point he is just trolling. I'd say I'm happy I moved on. I haven't even bought A dance with dragons because I couldn't finish the one before that as I didn't really like it. That being said, I'd like to get a conclusion to the story and I'm willing to go back to the series AFTER it's concluded (which most likely will never happen).

[–] Blackthorn@programming.dev 16 points 3 weeks ago (6 children)

Ringworld :)

[–] Blackthorn@programming.dev 2 points 3 weeks ago (1 children)

I hadn't realized these things! That's pretty cool.

[–] Blackthorn@programming.dev 3 points 3 weeks ago* (last edited 3 weeks ago)

You know how they say there is a difference between what people need and what they want? This is one of those cases. We gave up privacy in exchange for convenience. E.g. Cloud storage is convenient. For files, for documents, for code. It's so convenient that apart from acting in outrage when we discover that companies are scanning our data to train AIs, among other things, we are willing to do absolute nothing. And I think that's because we fear to lose that convenience if we force a change (not that we could even if we wanted). In other words, we are getting what we pay for (which makes sense because often all those cloud services are "free").

There is also another problem: some personal data is irrelevant to us, but it makes companies money when the data is all aggregate together. So, it's easy to let it pass (apart from some outrage) when you are informed that there is a leak and everyone can know how many hours you spend using a service. We don't feel it's very relevant. But having this kind of data about everyone can help companies to tailor their service to tske advantage of our habits, bringing THEM a lot of money. Most data they have is irrelevant for you but very relevant for companies that try to sell services.

Ideally I'd like to get paid. I'll allow you to track me, but I get 1$ every time records on the database with my data are returned by a query. See if they like it...

[–] Blackthorn@programming.dev 3 points 3 weeks ago

Still impressive!

[–] Blackthorn@programming.dev 34 points 3 weeks ago

Yes, that's actually pretty rare in Hollywood: an actual friendship between a man and a woman, without having to jump the other.

 

Well, I finally watched this movie yesterday, with 0 expectations and I actually enjoyed it. I'm surprised to learn it jas >90% score on Rotten Tomatoes as I wouldn't rate it that high, but I found it very compelling; I was actually looking forward to how they would come out of those bad situations this time. Characters were strangely well developed with backstory that didn't make my eyes roll. Sure, not original, but well told. I was expecting a Netflix movie type (dull and somewhat boring) and ended up with a good pic. Hoping for a sequel.

[–] Blackthorn@programming.dev 1 points 3 weeks ago

Not yet. I have mini metro though. Very similar but somewhat different feeling. It's probably the closest thing.

 

... and found it incredibly addicting. It's my first attempt at playing an ATC game and I keep coming back to it. I looked around for modern alternatives, but they seem a bit too complicated for my tastes. KA hits the sweet spot, because it's very simple to learn (almost "arcadey") and yet though to play. I wasn't expecting it. Was it popular back in the day?

 

I have been reading about this new language for a while. It's a C competitor, very slim language with very interesting choices, like supporting cross platform compilation out of the box, supports compiling C/C++ code (and can be used as a drop in replacement for C) to the point in can be used as replacement of (c)make and executables are very small.

But, like all languages, adoption is what makes the difference. And we don't know how it goes.

Is anyone actually using Zig right now? Any thoughts?

[–] Blackthorn@programming.dev 1 points 1 year ago

I love cargo, but cargo.io could REALLY make good use of namespaces. It's insane when clear library names are taken by highschoolers at their first project and there is nothing to be done about it. I'd also like some kind of curating on the packages.

view more: next ›