Bug Tracker

Modify

Ticket #1606 (closed bug: worksforme)

Opened 6 years ago

Last modified 14 months ago

not enough fps on fade

Reported by: AlexL Owned by:
Priority: minor Milestone: 1.2.1
Component: effects Version: 1.2
Keywords: fade, animate, opacity Cc:
Blocking: Blocked by:

Description

Hi, I'm new here so sorry if I filled some forms out wrong

var steps = 0
$('div#BB_overlay').css({
	position: 'fixed',
	left: 0, top: 0,
	width: '100%', height: '100%',
	zIndex: 10000
}).animate(
	{opacity: 0.5},
	{duration: 1, step: function() { steps++; }}
);

steps on my computer:

firefox: 20
safari: 10
opera: 6

similar script in prototype/aculous has more than 20 fps on all browsers

Change History

comment:1 Changed 6 years ago by john

  • Status changed from new to closed
  • Resolution set to worksforme

You do realize that it's duration: 1000, right? duration: 1 is just 1 millisecond - which is probably why it's having problems :-)

For me, I'm getting anywhere from 50-80 fps in all browsers.

comment:2 Changed 6 years ago by AlexL

Sorry, my mistake. Of course I meant 1000ms

I have just repeated my test and it seems this time it's the same with jQuery and aculo.us

test:  http://www.baldursoft.de/test.php

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.