Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Bitwise User-Defined Types

Author
Message
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 10th Jun 2013 02:15
This is just a concept, I don't think it's very practical in this form because it's probably slow and memory is limited, but I think there is potential for adding functionality to DBC using this kind of bit manipulation.


The difficulty in learning is not acquiring new knowledge but relinquishing the old.
Latch
17
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Jun 2013 08:41
Interesting. Back in the 8 bit computing days, I remember one of the techniques for storing the frequencies, volumes, and modulations for music was to store them in a single 16 or 32 bit value and use bit shifting and masking to pull out the individual components. With vertices, it might be a little difficult because there could be a lot of floating point values - though those could be handled with a multiplication by a power of 10 value.

Enjoy your day.

Login to post a reply

Server time is: 2024-03-29 11:54:40
Your offset time is: 2024-03-29 11:54:40