Search found 1322 matches

by dafhi
Sep 15, 2011 2:26
Forum: General
Topic: Squares
Replies: 8001
Views: 501607

pretty cool dodi. I had a crazy idea. There I am using that word again. Anyway, if Unlimited Detail tech is for real, there is the potential for crazy built upon crazy. Faster rendering through masks, for instance.
by dafhi
Sep 15, 2011 1:14
Forum: Tips and Tricks
Topic: Fast polygone and triangle BPP 8,15,16,24,32
Replies: 15
Views: 5099

@badidea

check out Richard's post at the bottom
http://www.freebasic.net/forum/viewtopic.php?t=17111
by dafhi
Sep 14, 2011 2:09
Forum: Tips and Tricks
Topic: Fast polygone and triangle BPP 8,15,16,24,32
Replies: 15
Views: 5099

really nice
by dafhi
Sep 06, 2011 7:57
Forum: General
Topic: [solved] udt sub, access 'Me' ?
Replies: 1
Views: 341

[solved] udt sub, access 'Me' ?

Is there a way I can access 'myself' in a udt sub call?

Sub Toon.Init()
ClassStats Toon.Fire
ClassStats Toon.Water
End Sub

[ thanks fxm ]
by dafhi
Sep 02, 2011 12:27
Forum: Tips and Tricks
Topic: Replace any recursion by unlimited iteration with own stack
Replies: 7
Views: 2091

I love your work. Not that I understand any of it
by dafhi
Aug 16, 2011 19:57
Forum: General
Topic: alpha blending
Replies: 20
Views: 2193

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: 2193

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: 2193

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: 2193

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: 1210

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: 1170

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

@ 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: 2193

@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: 2193

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: 2193

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.

Go to advanced search