Author Topic: Traumatizing  (Read 2510 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Traumatizing
« on: April 09, 2014, 06:13:45 AM »
deleted
« Last Edit: April 12, 2015, 11:52:16 PM by Peter »

JRS

  • Guest
Re: Traumatizing
« Reply #1 on: April 09, 2014, 09:37:32 AM »
What? No GDI+  version?  :)

Mike Lobanovsky

  • Guest
Re: Traumatizing
« Reply #2 on: April 09, 2014, 02:37:40 PM »
1. Hehe Peter, you know I'm extremely fond of hypnotizing interference patterns and fractals so thanks a lot for this nice snippet! :)

2.
Quote from: Peter
That can only SDL!
Quote from: John
What? No GDI+  version?
Luckily, gentlemen, this all can pretty well be done by simple Gdi.

Actually, any BASIC that has access to the SitPixel() API or whose PSet() or its equivalent is based on that API, can do the same. The FPS rate will however be terribly slow, either interpreted or JIT-compiled, because SetPixel() redraws the entire canvas every time it is called. So this brute-force approach can hardly be considered practical (see PSet.png and PSet.fbs/exe in the zip).

Yet you don't need Gdi+ to do it at least as fast as SDL does. The DIB Section set of API's in the basic Gdi library permits you to write directly into the bitmap memory and blit the results on screen as needed (see DIBSection.png and DIBSection.fbs/exe in the zip). Trauma() is re-written in C here to allow for JIT compilation while the rest stays purely interpretative.

FBSL is close to classic O2 so you'll be able to read the code easily.

Subjectively, my half-interpreted DIB Section code runs visibly faster on my machine than your latest Simple Windows example and perhaps even faster than SDL. OpenGL performs real bad for what its worth.

Are you using DIB Sections in your sw.dll solutions, Peter?

.

Aurel

  • Guest
Re: Traumatizing
« Reply #3 on: April 09, 2014, 02:47:41 PM »
Thanks Mike on great explanation  :D

JRS

  • Guest
Re: Traumatizing
« Reply #4 on: April 09, 2014, 05:01:09 PM »
Peter the prodigal programmer.




Seriously Peter, you are not doing yourself any favors by removing yourself as a member and starting over again each time. When someone searches for posts by your name, only current posts will be displayed. You are unable to edit / remove those posts either. You have fragmented your work by doing this. Next time count to 10 and don't deleted your membership again. We are your friends so don't take things so personally.

@Peter: I manually associated all your posts that were pointing to a deleted member back to your current Peter account. The post count isn't right but old messages are showing up again being owned by the current you. I will only do this once and that is only because I like you.  ;)
« Last Edit: April 10, 2014, 11:13:23 AM by John »

Mike Lobanovsky

  • Guest
Re: Traumatizing
« Reply #5 on: April 10, 2014, 07:47:29 AM »
Thanks a lot Peter,

(though the zip is incomplete - SDL dll's are missing).

I especially liked these positronic confetti: :)

.