Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CPU vs GPU scrolling
#1
Seeing few members playing with scroll, here comes one small toy suitable to test old laptops ability to scroll fast.
In my case I put to the test my slowest ThinkPad using single-channeled RAM paired with an old HD (not UHD series) shared memory integrated video controller. Old 1366x768 resolutions are targeted as well.

The CPU-driven putimage speed is not good at all, 180 FPS:

   

The GPU-driven putimage speed is superb, 1080++ FPS:

   

The source is attached.

I think the support for hardware rendering is a-must despite CPU renderer already achieving usually more FPS than most modern monitors offer, meaning 165Hz as a bare minimum, and targeting 480Hz. Will add this to my TriMasakari smooth scroller while retaining software rendering as an option. By the way, this summer I got frustrated of tearing (the lag) despite the speed, this hate resulted in writing the best smooth scroller known to me - SSSS, I wrote it in pure C. The V-sync feature is what made it really smooth, with no lag at all. The old SSSS was featured in this video at 9:50 mark:



Attached Files
.bas   CPU-vs-GPU.bas (Size: 6.43 KB / Downloads: 22)
"He learns not to learn and reverts to what the masses pass by."
Reply


Messages In This Thread
CPU vs GPU scrolling - by Sanmayce - 11-27-2024, 07:48 AM
RE: CPU vs GPU scrolling - by SMcNeill - 11-27-2024, 09:57 AM
RE: CPU vs GPU scrolling - by Pete - 11-27-2024, 06:26 PM
RE: CPU vs GPU scrolling - by Sanmayce - 11-28-2024, 06:44 AM



Users browsing this thread: 3 Guest(s)