Search found 823 matches

by Zamaster
Apr 21, 2015 2:59
Forum: Tips and Tricks
Topic: Electric Arcs
Replies: 17
Views: 3856

Electric Arcs

Been a while! So, I have never seen a decent, animated, real-time, single spine electric arc CGI. From what I've found online they're all kinda weak with some arguably better than others (no shots at any .bas boiz who've done one). My weekend project was to try and make one that was passable and som...
by Zamaster
Oct 29, 2014 5:10
Forum: Tips and Tricks
Topic: more triangles... (updated)
Replies: 6
Views: 1818

Re: more triangles...

Yeah I'm going to remove the dependence on SSE4 with some other improvements soon, I have an idea on how to improve the slow case that sort of removes the need for the SSE4 ops. Also pshufd will work fine here in place of pshufb, I'm just used to using pshufb ;)
by Zamaster
Oct 28, 2014 5:48
Forum: Tips and Tricks
Topic: more triangles... (updated)
Replies: 6
Views: 1818

Re: more triangles...

Sad face -> :(

You will need at least a Pentium 4 to compile since I believe that was the first CPU to get SSE4.
by Zamaster
Oct 28, 2014 4:40
Forum: Tips and Tricks
Topic: more triangles... (updated)
Replies: 6
Views: 1818

more triangles... (updated)

UPDATE 10_29_14 Now requires SSE2 isntead of SSE4. Worst case is now twice as fast. I did a little test (unfortunately using the old code) of the only other optimized triangle routine I could find on the forums (by Shockwave) and for small triangles his is about twice as fast and for large triangle...
by Zamaster
Oct 27, 2014 3:32
Forum: General
Topic: alignment
Replies: 6
Views: 1192

Re: alignment

I ended up doing something just like this, thanks for the post!
by Zamaster
Oct 23, 2014 6:19
Forum: General
Topic: alignment
Replies: 6
Views: 1192

Re: alignment

just a procedure scope variable
by Zamaster
Oct 18, 2014 7:50
Forum: General
Topic: [solved]Why this asm code is slower than the basic code?
Replies: 6
Views: 1099

Re: [solved]Why this asm code is slower than the basic code?

As a general rule, I rarely bust out the x86 unless I'm writing a custom blitter because I can take advantage of SSE. This way you can do some arithmetic simultaneously on all pixel channels for multiple pixels, otherwise there aren't a whole lot of reasons where you will NEED it.
by Zamaster
Oct 18, 2014 7:43
Forum: General
Topic: Can you beat this ASM?
Replies: 5
Views: 882

Re: Can you beat this ASM?

I'm not sure what that is that you posted. Looks complicated! Anyway, here is a version that takes fewer ops, two fewer multiplies and is full alpha-blending at the cost of the least significant bit of the alpha channel: movdqu xmm0, [esi] movdqu xmm6, [col_offset] psubusb xmm0, xmm6 movhlps xmm1, x...
by Zamaster
Oct 18, 2014 3:19
Forum: General
Topic: Can you beat this ASM?
Replies: 5
Views: 882

Re: Can you beat this ASM?

Packed pixel arithmetic is pretty infamously faster than higher level interpretations, particularly on newer CPUs where throughput is 1/2 cycles. This implementation isn't necessarily slow or bad, but I have a suspicion there are people here who can improve this code.
by Zamaster
Oct 17, 2014 21:05
Forum: General
Topic: Can you beat this ASM?
Replies: 5
Views: 882

Re: Can you beat this ASM?

Yes I know the difference between shuffling and swizzling I just like the sound of "swizzle."
by Zamaster
Oct 17, 2014 21:03
Forum: General
Topic: Can you beat this ASM?
Replies: 5
Views: 882

Can you beat this ASM?

UPDATE: I have an improvement but I bet it could be made better (see post) There are many people here much more talented at x86 then I am, so I'd like some suggestions. I have this 4 pixels pre-multiplied alpha blending routine with an initial color subtraction, and I'd like to know if anyone can sl...
by Zamaster
Oct 17, 2014 20:52
Forum: General
Topic: alignment
Replies: 6
Views: 1192

Re: alignment

okay :(. Anyone know a hack?
by Zamaster
Oct 16, 2014 5:16
Forum: General
Topic: alignment
Replies: 6
Views: 1192

alignment

When defining variables in freebasic, is it possible to force alignment like in c with "__attribute__ (alignment(16)) ".
by Zamaster
Oct 08, 2014 3:39
Forum: Tips and Tricks
Topic: AI Platformer Pathfinding
Replies: 2
Views: 831

Re: AI Platformer Pathfinding

Couldn't exactly say... I've found that I make time for things I really love to do. In this case, video juegos.
by Zamaster
Oct 06, 2014 8:36
Forum: Tips and Tricks
Topic: AI Platformer Pathfinding
Replies: 2
Views: 831

AI Platformer Pathfinding

So its a video:
https://www.youtube.com/watch?v=fAzzFuhbY-4

I've found all sorts of people who had a lot of trouble getting this kind of thing to work well so I wanted to showcase my solution as I work on it. I plan on releasing the sauce once the game is all said and done.

Go to advanced search