Search found 1317 matches

by dafhi
Aug 16, 2011 19:57
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

I was able to improve the performance. Might take a breather before I begin researching the other stuff. "put_test.bas" #Include "fbgfx.bi" #If __FB_LANG__ = "fb" Using fb #EndIf Dim e As EVENT Dim Shared As Integer SCR_W = 480 Dim Shared As Integer SCR_H = 360 Dim Shared As Inte...
by dafhi
Aug 15, 2011 15:34
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

Just a little update for you guys. I discovered that the main culprit in the performance hit is this guy

Int(sng)

That said, I plan on diving into the realms of GL, Cairo and ASM.

Thanks for yall's input. (no I am not from the south)
by dafhi
Aug 14, 2011 22:16
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

I made the main loops stop after 100 executions and print out the execution time. On my system both versions are equal in speed (less than 2 % difference, cairo_test.bas was a bit faster in 2 of 3 tests). Interesting. On my machine it shows that Cairo is using around 34% of the cpu while the fbgfx ...
by dafhi
Aug 14, 2011 19:50
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

the cairo version runs slower. I was wondering if you are familiar enough with Cairo to suggest speed improvements. Thanks for the compiler warnings list. They don't appear here, but I get 'suspicious pointer assignment' messages. Yeah I'd like to learn opengl. Relsoft's EasyGL thread suggests "rend...
by dafhi
Aug 14, 2011 18:54
Forum: General
Topic: Advice wanted re sort routines & histogram analysis
Replies: 12
Views: 1190

Between my own projects I've been trying to work out a sub which does what you describe.

The tricky part is flattening out the vertical lines representing repeat color values
by dafhi
Aug 14, 2011 18:42
Forum: Projects
Topic: Dot Clusters
Replies: 4
Views: 1139

worthy of closer inspection
by dafhi
Aug 14, 2011 16:45
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

@ TJF - could you check this out and give pointers? (no pun intended) "palettizer.bi" '' pre-release ' +--------------------------------------------------+ ' ' | palettizer.bi v0.98 by cRex (2011 Aug 03) | ' ' +----------------------------------------------=---+ ' ' | palettizer writes multi...
by dafhi
Aug 14, 2011 3:46
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

@TJF

I've wanted to try Cairo, and just now got it to work! However it seems to be utilizing only the cpu
by dafhi
Aug 13, 2011 18:24
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

I wondered if FB's blend used mmx.. I coded 2 alpha subs .. my d*a + s*(255-a) is faster than my s + a*(d-s). FB's blit seems to be about 15% faster than my fastest .. Anyway, thanks for the input. My goal is to have most cpu-friendly version, and if I need an extra buffer to have my routine use Put...
by dafhi
Aug 11, 2011 0:52
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

Atm custom Put would simply be a re-hash of what I already have. What I need is the speed of the FB's internal alpha blending at the pixel level.
by dafhi
Aug 10, 2011 23:01
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

I had thought of the inverse-alpha assigned to background, but wanted to explore other possibilities. I like my code to be as straight-forward as possible. Thanks for the links. What I think I might do, as power-meter-friendly engine is my goal (I will take a peek at your engine) is use Rel's EasyGl...
by dafhi
Aug 10, 2011 22:09
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

To be more clear, I am curious if the alpha blend that Put uses might also be accessible at the pixel level Here is my sans-Put method: scrPTR = ScreenPtr For y = 0 To HgtM Dim row As UInteger Ptr = pixels_BG + y * pitch_BG For x = 0 To WidM AlphaColor *scrPTR, mPalette(),sngMap(x,y)...
by dafhi
Aug 10, 2011 20:20
Forum: General
Topic: alpha blending
Replies: 20
Views: 2107

alpha blending

I like Put + Alpha because it's more cpu-friendly than my own alpha sub.
Plus, my sub uses 0-128 for alpha. (it still looks amazing)

But using my sub, I can get away with just having a background image, as my 'foreground' is procedural

Is there a similar approach which FB currently supports?
by dafhi
Aug 03, 2011 9:58
Forum: Beginners
Topic: Completely new and am SO confused
Replies: 7
Views: 1024

correct me if I am wrong, but are you asking how you can type in an equation and get the answer?

many modern programming languages have a built-in parser

For example in Freebasic,

Code: Select all

Print (2 + 2) / 2

Sleep
by dafhi
Aug 03, 2011 9:13
Forum: General
Topic: Squares
Replies: 7687
Views: 481069

u pple are nutty.

@dodicat
cool proggy

(can you believe I've edited this twice)

Go to advanced search