TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amit Padhiyar
1.3k
448
6.6k
How to make timeline scale with fast loading speed?
Jul 27 2019 11:15 AM
Yesterday i was worked on reduce loop size (https://www.c-sharpcorner.com/forums/how-do-i-reduce-loop-size-using-list-or-linq-in-c-sharp) that can make project smooth but i can't find answer.
I created shape like
Polyline p =
new
Polyline();
p.Stroke = Brushes.Red;
p.StrokeThickness = 1.5;
p.Points =
new
PointCollection {
new
Point(x, 20),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 29),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40),
new
Point(x, 34),
new
Point(x, 40),
new
Point(x += XAxis, 40)
};
This above entire code, I called one segment. I iam creating this segments for 120 mins.
this segment for only 0.010 seconds. This will make too large loop.
For example...
1 second == 100 loop
1 min == 6000 loop
1 hour == 360,000 loop
2 hour == 720,000 loop
So i want to reduce this loop (around 3600).
Reply
Answers (
0
)
Unmanaged C++ Dll Call From Managed C# Application
what is Boxing and Unboxing?