I'm trying to develop a 3d graphics engine, i use a framebuffer class which is of my own creation but the fps is too low, and i think it's because i use putpixel() function from winbgim library,

my function to show framebuffer on screen is:

void framebuffer::showonscreen( ){

int i;
for(int y=0; y < length; y++)
    for(int x=0; x < width; x++)
        i = x + screeny[y];
        putpixel(x, y, colbuf[i]);


Is there any alternative to this putpixel function or a technique to speed it up, or any other manual(without using libraries) way

I heard about giving a direct access to memory blocks, or using the vram

Would any one know how to help me in this problem?

Please, HELP is appreciated.


  • I am studying a general science course, because of my interest in the field. My parents are both working in the field of sciences and that was my motivation, having been with them in archaeological and nature trips while I was growing up. I've studied in different schools, but thankfully didn't encountered any mean girls like Cady in the said movie. In fact, I was considered popular because of my warm and outgoing personality, as one of my long-time friends describe metareplace my works you can on this site

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion