Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Spell of Mastery Progress

Name: Anonymous 2020-09-17 20:05

Ok. The new voxel rendering algorithm performs 1.4 times faster. Not much, but voxel models can also be split into 16-bit chunks, which locally use only 16-bit addressing. That should speedup the algorithm further, if the bottleneck is with the memory bandwidth.

I've also discovered that GCC's __builtin_popcount is slower than a lookup table, since it branches into subroutine __popcountdi2. Why GCC doesnt use the x86 popcnt opcode? No idea. No idea. But it probably would be easier to answer why Stallman molests little children.

Name: Anonymous 2020-10-12 21:29

A few segfauls later
class !CStack;

CStack *CStack.push {}

void test() {
CStack s;
s.push(123).push(456);
}

expands into
CStack *CStack_m_push(CStack *this) {}

void test() {
CStack s;
CStack_m_push(CStack_m_push(&(s),123),456);
}



Note how methods can be called on both pointers and direct values. I.e. this.push(123) would be totally fine.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List