framebuffer - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.


msbmmsbm EgyptPosts: 0Member

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.


  • MarinoMarino USAPosts: 1Member

    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.