logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
shawntempesta  
#1 Posted : Monday, July 16, 2018 6:20:05 AM(UTC)
shawntempesta

Rank: Advanced Member

Groups: Registered
Joined: 7/15/2018(UTC)
Posts: 109
United States
Location: Las Vegas, NV

Thanks: 14 times
Was thanked: 8 time(s) in 7 post(s)
Created an XAML that fades up and rises, then scrolls for a short while and fades out.

The animation, while simple, is dropping a ton of frames, particularly with longer (see over 30 characters) titles.

Shouldn't be happening, especially in 720p. Curious if anyone else runs into this with custom XAML storyboards?

Video of stuttering (change from .AVI to .MP4) and the XAML are attached.

STATS:
Windows 10
i7-6950X
64GB RAM
980ti
File Attachment(s):
TickerXAMLtest.xaml (4kb) downloaded 14 time(s).
capture - 15 July 2018 - 03-17-11 AM.avi (4,067kb) downloaded 16 time(s).

You cannot view/download attachments. Try to login or register.
admin  
#2 Posted : Monday, July 16, 2018 6:52:28 AM(UTC)
admin

Rank: Administration

Groups: Administrators
Joined: 1/13/2010(UTC)
Posts: 5,211
Man
Location: Gold Coast, Australia

Was thanked: 4301 time(s) in 1523 post(s)
Hi,

Try setting the opacity on the textblock directly rather than by adjusting the fill brush.
XAML is rendered on the CPU for the most part so a lot of care has to be taken to ensure animations do not tax the CPU.

Since the brush is applied to every letter individually, setting the opacity there is going to be very expensive the longer the text.

Regards,

Martin
vMix
thanks 2 users thanked admin for this useful post.
doggy on 7/16/2018(UTC), shawntempesta on 7/16/2018(UTC)
shawntempesta  
#3 Posted : Monday, July 16, 2018 3:55:25 PM(UTC)
shawntempesta

Rank: Advanced Member

Groups: Registered
Joined: 7/15/2018(UTC)
Posts: 109
United States
Location: Las Vegas, NV

Thanks: 14 times
Was thanked: 8 time(s) in 7 post(s)
Bingo! That did it Martin. Teaching myself coding was not expected in this. LOL...

Curious... I am attempting to make a slick looking ticker where the title comes in, scrolls so you get the full length, fades out, and the next comes in.

The issue is the "Auto Next" never lines up perfectly with the animation. Is there a way to have the XAML call for the next title? I doubt it, just curious. If not, is there any chance of a richer RSS ticker that would allow for continuous scrolling of all titles with an image delimiter?

Thanks!
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.