I am not happy

Posted by blackhole on July 26, 2010, 7:34 p.m.

My admission to the computer science major has been rejected. I will have to try again to see if I can get in spring quarter. That application was the best damn thing I've ever written. I could not have possibly improved anything. My grades are good, with a 3.4 GPA, …

Assembly CAS function

Posted by blackhole on July 22, 2010, 2:05 p.m.

inline unsigned char BSS_FASTCALL asmcas(int *pval, int newval, int oldval)

{

unsigned char rval;

__asm {

#ifdef BSS_NO_FASTCALL //if we are using fastcall we don't need these instructions

mov EDX, newval

mov ECX, pval

#endif

mov EAX, oldval

lock cmpxchg [ECX], EDX

sete rval // Note that sete sets a …

I make the weirdest crap on accident

Posted by blackhole on July 18, 2010, 7:44 a.m.

(Embedded Video)

Front To Back Fail

Posted by blackhole on July 17, 2010, 2:19 a.m.

So this was supposed to be an entry about how I had utilized a blending algorithm that allowed one to render front to back to speed up rendering via the stencil buffer…

But it turns out it's useless. The blending algorithm itself, even though its implemented in fixed function hardware, …

Desktop Composition

Posted by blackhole on July 15, 2010, 11:08 p.m.

I have succeeded in directly compositing my graphics engine to a vista window, using a dynamic DLL load so it doesn't cause any problems on XP. I also managed to create a situation where the window is entirely transparent and impossible to click, which was an absolute bitch to get …

Function Pointer Speed

Posted by blackhole on July 14, 2010, 12:21 a.m.

So after a lot of misguided profiling where I ended up just testing the stupid CPU cache and its ability to fucking predict what my code is going to do, I have, for the most part, demonstrated the following:

if(!(rand()%2d)) footest.nothing();

else footest.nothing2();

is slightly faster then

(footest.*funcptr[rand()%2])();

where funcptr …

Sprites Needed

Posted by blackhole on July 8, 2010, 10:02 p.m.

I NEED HELP.

I am in the final stages of rewriting my graphics engine, and before I release a pre-alpha I want to include a sprite-helper module so its not completely useless. However, in order to develop a sprite based module I need a sprite-based example to work off of, …

SCREW CHROME

Posted by blackhole on June 27, 2010, 4:03 a.m.

I love chrome. I really do. Its fast, its lightweight, its superbly designed in almost every way save a few tiny little details that make me want to FUCKING MURDER THE GUYS AT GOOGLE WHO THINK UP THIS SHIT.

On a completely unrelated note, "shit" is an anagram of …

MY BIRTHDAY YO

Posted by blackhole on June 23, 2010, 2 a.m.

So its my birthday today. I'm 20. Of course, nobody cares. I mean, I don't even care. I'll care next year when I am no longer a minor. So I'm really just making this to be annoying. That said I need to draw a bunny for my cake and fill …

ONE MILLION IMAGES

Posted by blackhole on June 20, 2010, 5:51 p.m.

I have succeeded in completely separating the number of images in the pipeline with the render time. Below is an example of one million images being culled to display about 100 on the screen at once, rendering at about 1230 FPS. The actual culling code takes 0.52 milliseconds per frame. …