Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
7 crawler(s) on-line.
 112 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 MEGA_RJ_MICAL:  26 mins ago
 Karlos:  1 hr 8 mins ago
 dreamlandfantasy:  1 hr 16 mins ago
 amigakit:  1 hr 45 mins ago
 matthey:  2 hrs 22 mins ago
 AMIGASYSTEM:  2 hrs 51 mins ago
 michalsc:  3 hrs 28 mins ago
 Ratta:  3 hrs 55 mins ago
 Dragster:  4 hrs 1 min ago
 pixie:  4 hrs 2 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  Is AmigaOS4.x datatypes using AltiVec?
Register To Post

Goto page ( Previous Page 1 | 2 )
PosterThread
Deniil715 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 14-Dec-2010 14:41:01
#21 ]
Elite Member
Joined: 14-May-2003
Posts: 4236
From: Sweden

@Tuxedo

LoView typically always scales the images too, to fit the window, right? The scaling is done by picture.datatype I suppose so differences there could make the difference perhaps?

I know scaling down images in PicShow takes longer time than the loading itself (but the quality is good).

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
Tuxedo 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 14-Dec-2010 22:25:39
#22 ]
Elite Member
Joined: 28-Nov-2003
Posts: 2341
From: Perugia, ITALY

@Severin

Well...
Doing a JPEG DataType that supports AltiVec dont seems to me an hack or something so complex...

However seems that was really a picture.datatype issue the difference from MOS to AOS however since AltiiVec dont seems to made a real difference...
Looking at the test made with the WarpJPG DT...

@Deniil715

The LoView LoadTime was calculated only on Image/Anim loading time...all the time after that(rescale and display) wasnt calculated so no matter if the image was resized (with optional smooth that was disabled by default) or not...

Last edited by Tuxedo on 15-Dec-2010 at 07:59 PM.

_________________
Simone"Tuxedo"Monsignori, Perugia, ITALY.

 Status: Offline
Profile     Report this post  
Futaura 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 18-Feb-2011 23:37:23
#23 ]
Regular Member
Joined: 10-May-2004
Posts: 253
From: UK

@Tuxedo

Tonight I tried compiling WarpJPEG with the -maltivec and -mabi-altivec options, and unsurprisingly it made no measurable difference to JPEG decoding speed. Although those compiler options allow GCC to use Altivec registers during optimization, Altivec isn't actually used throughout and the uses are quite isolated (I checked with a disassembler). As I think I said before, to use Altivec to its full effect, C code has to be specifically written to make use of the Altivec extensions - you cannot rely on GCC to magically make plain C code faster using Altivec.

_________________
IBrowse, AmiSSL and Warp Datatype Developer

 Status: Offline
Profile     Report this post  
AlexC 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 19-Feb-2011 0:53:07
#24 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

@Severin

Quote:
Severin wrote:
You will also have to consider that none of the current OS4 hardware has a G4 so Altivec support isn't going to happen, all the machines with G4's are over 5 years old now, if it doesn't support Altivec now it never will unless some 3rd party coder does a hack.


*cough*x1000*cough*

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
Templario 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 19-Feb-2011 23:42:09
#25 ]
Elite Member
Joined: 22-Jun-2004
Posts: 3663
From: Unknown

@Futaura

Thank you for you last PNG datatype update.

Last edited by Templario on 19-Feb-2011 at 11:46 PM.

 Status: Offline
Profile     Report this post  
Hans 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 19-Feb-2011 23:57:46
#26 ]
Elite Member
Joined: 27-Dec-2003
Posts: 5067
From: New Zealand

@Futaura

Check out this page for details on GCC's auto-vectorization, and getting info from the compiler on what it has done. Like you said, the compiler only knows how to vectorize particular constructs.

EDIT: The advantage of using the auto-vectorization over inline assembly code, is that the same auto-vectorization will work on other architectures too, whereas the assembly will be specific to the SIMD unit of a specific processor. Assembly will give you more control though.

Hans

Last edited by Hans on 20-Feb-2011 at 12:20 AM.
Last edited by Hans on 19-Feb-2011 at 11:59 PM.

_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
https://keasigmadelta.com/ - More of my work.

 Status: Offline
Profile     Report this post  
Futaura 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 20-Feb-2011 11:30:23
#27 ]
Regular Member
Joined: 10-May-2004
Posts: 253
From: UK

@Hans

Thanks for the link - I wasn't aware of the -ftree-vectorize option. Unfortunately, compiling with that option doesn't have any performance impact on the jpeglib either . Altivec code doesn't have to be written in assembler, btw - GCC has an extension that allows Altivec code to be written in C, although obviously hand-optimized assembly is likely to be faster.

_________________
IBrowse, AmiSSL and Warp Datatype Developer

 Status: Offline
Profile     Report this post  
Tuxedo 
Re: Is AmigaOS4.x datatypes using AltiVec?
Posted on 20-Feb-2011 11:49:48
#28 ]
Elite Member
Joined: 28-Nov-2003
Posts: 2341
From: Perugia, ITALY

@Futaura

Well...
Thank you for your tests!
Under MOS however the speed difference wasnt so big since I think that also ther picture.datatype need some sort of optimizations...maybe somone from Hyperion or betatesters can tell us idf something was already done bout that?
However I think that AltiVec support was really needed since also(as sayd above) PA6T have it...and it have to be optimised at maximum(PA6T code) to have better performaces possible...
Let see whats happening in future...

Good Work!

_________________
Simone"Tuxedo"Monsignori, Perugia, ITALY.

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle