Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why Pete Likes Hardware Acceleration - Popup Demo
#5
The hardware popup (2nd one) is just as fast, but only after you repeat the process. The lag on the initial occurrence is from the time it takes to draw the hardware image in the background. After that, the image stays in memory and can be used nearly instantly. So what I do in my programs is make the images ahead of time.

The advantage to the hardware popup(2nd one) is the outer border is at the outside edge. In SCREEN 0, the border appears indented, and there is no way to change this. So the hardware popup takes up less space. Also, the hardware shadow is a true shadow, taking advantage of alpha transparency. 

@TempoidBasic

I don't have a Linux system, so I don't see what my friend Tempo screen shot. Apparently Linux does not process this line the same as Windows...

If i + 1 < WinCon.noi Then Print "Ã" + String$(mki.mwidth - 2, Chr$(196)) + "´";

Maybe it would work if we changed that line use the character number instead of the glyph itself...

If i + 1 < WinCon.noi Then Print Chr$(195) + String$(mki.mwidth - 2, Chr$(196)) + Chr$( 180);

Pete
Reply


Messages In This Thread
RE: Why Pete Likes Hardware Acceleration - Popup Demo - by Pete - 11-26-2025, 07:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Demo: Adaptable Hardware Grid Pete 1 183 02-01-2026, 08:16 PM
Last Post: grymmjack
  Christmas Screen Saver (Hardware Accelerated) dcoterel 2 329 12-27-2025, 06:25 PM
Last Post: bplus
  WinAPI Mouse Demo Pete 0 183 12-20-2025, 06:40 PM
Last Post: Pete
  Hyperlink Demo in SCREEN 0 Pete 2 362 11-02-2025, 07:13 PM
Last Post: madscijr
  ImagePop - puts image on screen with a little popup effect Dav 2 1,018 05-29-2024, 03:45 PM
Last Post: Dav

Forum Jump:


Users browsing this thread: