bonkmaykr

@bonkmaykr@canithesis.org

20 Male
CEO Canithesis Interactive, sysadmin Worlio LLC
wipEout and THE FINALS fan
Linux enthusiast, Java / C# / C++ Dev
Old computer freak, FSF donor
Missouri, United States

I made the Firestar Mod Manager for Playstation Vita. Currently working on a danmaku shooter game called "Time Falcon". My posts can range anywhere from deep nerd thoughts to brainless shitposting.

Give me liberty or give me death
XMPP/Jabberbonkmaykr@worlio.com
Embark IDmadaraosenpai#5926

43 following 25 followers

1 ★ 0 ↺

bonkmaykr »
@bonkmaykr@canithesis.org

I don't like those fixed point libraries much.

There also doesn't seem to be a clear standard on fixed point math in C++, as simple as it sounds. The same precision or even the same type names are not guaranteed, it's arguably less consistent than floats.

I might use incredibly large integers and then just cut them back down to floats when the renderer draws them (on PC).

...

Coyote »
@Coyote@social.singing.dog

@bonkmaykr There's the std::int32_t types if your target supports them or the alternative bit-fields if you need an odd ball 47 bit sized integer.

I wonder if I can just cheat my way into making Time Falcon use fixed point math by making everything an integer shifted upwards by 16-bits

That's all fixed point math is at the end of the day. You really only need a type to make working with normal numbers easier and to make printing to decimal look right.

    History