Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1387087 Posts in 66512 Topics- by 59064 Members - Latest Member: Vhalenn

January 19, 2021, 05:13:28 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)The happy programmer room
Pages: 1 ... 277 278 [279]
Print
Author Topic: The happy programmer room  (Read 565739 times)
InfiniteStateMachine
Level 10
*****



View Profile WWW
« Reply #5560 on: November 02, 2020, 06:52:04 AM »

Interesting! I would love to see the difference on something like a pixel art scene with lots of objects moving around to really see the effect.

How did you come about doing this? Were you looking at some pixel art art and it started bothering you that it was moving like that?
Logged

ThemsAllTook
Global Moderator
Level 10
******



View Profile WWW
« Reply #5561 on: November 03, 2020, 06:29:45 PM »

Unfortunately my use case for this right now isn't especially exciting or showy - I was implementing a color picker in my level editor, and moving the cursor diagonally with keyboard or d-pad controls was showing this effect. I remembered once having helped someone else who was seeing this in their game, so I already had a solution in mind and was eager to put my theory to test in a real situation. Now that I have the code for it in my game framework, I have a solution in my pocket for all future situations where this comes up.



Right now I'm applying this change to the actual coordinate values whenever the cursor is moved, but I realized later that this could be applied just as easily to only the visuals, as long as my display code has access to the direction of movement for the thing it's drawing.
Logged

ThemsAllTook
Global Moderator
Level 10
******



View Profile WWW
« Reply #5562 on: December 01, 2020, 07:16:25 AM »

I posted this earlier on Twitter, but I think it fits here too... I had a fun little weekend project getting my two latest game projects running on a Raspberry Pi. Some things I learned:
  • This little device is surprisingly capable. I was expecting noticeably degraded performance, but nope! Just as good for my use cases as a normal desktop computer.
  • GLSL compilation is buggy. No matter what I did, converting a mat4 to mat3 in one of my shaders caused a crash, so I just had to disable some animation features for now. I'm probably going to switch graphics APIs at some point, so this isn't too big a deal right now.
  • Linux audio APIs are a mess. What works mostly OK on my laptop produces nothing but an intermittent crackle on the raspberry. Not sure what to do about this one yet.
  • char type is unsigned by default. I had to use the "signed" keyword for the first time in 18 years of writing C.
  • Gamepads mostly just work, though my Xbox One controller isn't recognized. I haven't taken the time to see if a driver is available yet.
  • Floating point rounding behavior is different. I had some code typecasting between uint64_t and double, and different values than I expected were representable/unrepresentable.

I'm not sure how realistic it will be to make Raspberry Pi a release platform once these projects are ready, but at least it's an option now!
Logged

mirrorbird
Level 0
*


View Profile
« Reply #5563 on: December 30, 2020, 09:08:02 PM »

 Gomez

I'm moderately happy, but seem to be stuck in poking around in my code without having too much progress. I'm trying to force myself to finish prototypes in a week (or equivalent amount of work). Maybe I'll participate in a new year game jam.
Logged
Pages: 1 ... 277 278 [279]
Print
Jump to:  

Theme orange-lt created by panic