This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150444 - Flocks sample brings cpu to 100%
Summary: Flocks sample brings cpu to 100%
Status: VERIFIED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaFX (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P1 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
: 147971 147981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-16 22:01 UTC by Lark Fitzgerald
Modified: 2008-10-31 02:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-10-16 22:01:29 UTC
Tested using Promoted SDK/Plugin build #25
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 741, Build-ID: 2008-10-14_17-39-02 on:
Product Version: NetBeans IDE 6.5 RC1 (Build 200810151402)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

1. create Simulation > Flocks sample
2. deploy it

It runs but its REALLY slow.  The CPU starts spinning at 100%.  I tested this with both 1.5 and 1.6.  Its slightly 
slower on 1.5.
Comment 1 Michal Skvor 2008-10-22 14:13:26 UTC
This is runtime issue.
Comment 2 Michal Skvor 2008-10-22 14:18:56 UTC
*** Issue 147971 has been marked as a duplicate of this issue. ***
Comment 3 Michal Skvor 2008-10-22 14:19:41 UTC
*** Issue 147981 has been marked as a duplicate of this issue. ***
Comment 4 Lark Fitzgerald 2008-10-22 15:08:48 UTC
Can you point me to the Runtime bug?
Comment 5 Lark Fitzgerald 2008-10-22 15:13:37 UTC
Reopening for tracking purposes. If this issue is not fixed then we must remove this sample before we release.
Comment 6 Lark Fitzgerald 2008-10-27 19:45:00 UTC
See: http://openjfx.java.sun.com/jira/browse/RT-1682
Comment 7 kcr 2008-10-27 22:19:30 UTC
http://openjfx.java.sun.com/jira/browse/RT-1682 was closed as a duplicate of
http://openjfx.java.sun.com/jira/browse/RT-1542. The root cause of the worst of the problem is
http://openjfx.java.sun.com/jira/browse/RT-724 : Rendering is stalled if a repeating KeyFrame action takes longer than
its specified duration.

This issue will not be addressed for JavaFX 1.0. The workaround for the stall (which causes most of the jerkiness), is
to set the "canSkip: true" flag in the KeyFrame in your sample.
Comment 8 Michal Skvor 2008-10-30 10:29:53 UTC
Added canSkip flag.
Comment 9 Lark Fitzgerald 2008-10-31 02:59:30 UTC
Promoted Installer build 20 contains SDK 45 (767) 2008-10-28_19-54-33
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)