English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

Thread Tools
Old 11 December 2022, 16:46   #21
Registered User
paraj's Avatar
Join Date: Feb 2017
Location: Denmark
Posts: 872
Too bad, but such is life. Gotta go by the numbers even if they don't fit with your mental model of what should be fast. Did you try inline asm'ing the new innerloops?

And just for funsies, here's a quick attempt for branch-free clamping code (just the standard min/max stuff with constants, not micro optimzed):
        ; d0: in/out
        moveq.l #31,d3
        moveq.l #127,d1
        sub.l   d1,d0
        move.l  d0,d2
        asr.l   d3,d2
        and.l   d2,d0
        add.l   d1,d0
        moveq.l #-128,d1
        sub.l   d0,d1
        move.l  d1,d2
        asr.l   d3,d2
        and.l   d2,d1
        moveq.l #-128,d0
        sub.l   d1,d0
paraj is offline  
Old 12 December 2022, 18:48   #22
old chunk of coal

BSzili's Avatar
Join Date: Nov 2011
Location: Hungary
Posts: 1,194
This is something I intend to try later. The mixers don't have any other branching except for the clipping, so it could help a bit.
edit: I haven't tried inline asm for the drawing yet, since switching to vlineasm1 had such a significant performance hit.

Last edited by BSzili; 12 December 2022 at 19:13.
BSzili is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Voodoo.card 4.32 what improvements? Bamiga2002 support.Apps 4 17 July 2014 03:03
Improvements on portability Dreamcast270mhz request.UAE Wishlist 11 11 February 2010 16:20
drawing tablet improvements pbareges request.UAE Wishlist 2 10 April 2009 14:06
AVIOutput improvements Toni Wilen support.WinUAE 0 20 February 2008 12:02
OS 3.9 GUI Improvements redneon Amiga scene 11 17 February 2005 08:56

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:25.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Page generated in 0.14469 seconds with 16 queries