Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » System Memory or GFX memory?

This thread is locked; no one can reply to it. rss feed Print
System Memory or GFX memory?
Lucas Dalmasso
Member #20,839
August 2021

I have written a Scale2x algorithm, and: or allocate memory in System Memory or GFX mem?

What is faster?

Chris Katko
Member #1,881
January 2002
avatar

Well, you could benchmark it. A simple FPS counter would work for this case.

Allegro 4 or 5?

It "should" be faster with memory bitmaps because VRAM has much slower access--especially exacerbated on byte-by-byte drawing [which scaling algorithms usually are]. Usually VRAM you just upload your bitmaps/textures, and then use the GPU to "draw" them by copying them onto the screen bitmap. Drawing pixels straight to VRAM is extremely slow.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Chris Katko
Member #1,881
January 2002
avatar

^

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

Go to: