NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 75 76 77 78 79 … 93 Next »
config the default screen refresh

 
  • 0 Vote(s) - 0 Average
config the default screen refresh
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2005-03-12, 08:00 AM
wasnt sure if this should be placed under the wishlist or under this, anyway, im trying to animate a scrolling textbox, that scrolls horizontally. the problem is that the screen is only really drawn once every second or so, if i leave it moving at a low number of pixels, it looks fine, but way to slow, increase the number of pixels, and it jumps, i tried using a thread and keep calling "ForceRepaint" but too many things can go wrong there, and well the gbpvr.exe.log file gets a line printed to it, so if i make it refresh 5 times a second, and someone leaves it in the infoscreen for a while, the log file can become quite large.

so my suggestion/wish make it configurable, how many times a second the screen is redrawn. so when the use enters the infoscreen
pluginHelper.RefreshInterval = 200 (ie how many ms between each repaint, if using mvp this should always be ignored).
and when the user exits
pluginHelper.RefreshInterval = 1000

this will still call the "needsRefreshing" method just at a faster interval. any chance this is possible sub?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2005-03-12, 04:42 PM
You could always return true for the needsMoreRendering argument of render().

Be warned, animation doesnt work well with the MVP.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2005-03-12, 04:52 PM
yeah i do return true on needsmorerendering, but thats only called about once every second, i want the ability to alter the time interval that the needsmorerendering method is called. so needsmorerendering is called about every 200ms.

im not to worried about poor animation on the MVP, why should the rest suffer because of the mvp, it would still work, just not look as good.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2005-03-12, 04:59 PM
I mean the argument to render().

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">public Image render(out bool requiresMoreRendering)[/QUOTE]
If this returns true, then render() is called again.

You dont need to make anyone suffer.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2005-03-12, 05:01 PM
ok yeah its 6am, i havent gone to sleep yet, misread the needsmorerendering method thingy.

so if i set the out bool for render to true, will it just automatically recall the method?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2005-03-12, 05:03 PM
yes
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2005-03-12, 05:04 PM
cool, thanks sub.
jasonf
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2004
#8
2005-03-12, 09:22 PM
What are the implications behind the scenes? I always thought that we should use that feature sparingly, if at all because of resource issues.
JasonF
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2005-03-12, 09:28 PM
I just dont advise people use it because the MVP doesnt like it. Because of this, I dont use it myself, mean I'm not that familiar with the issues you may encounter.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#10
2005-03-13, 02:44 AM
is there anyway to detect if a user is using a mvp from one of the gbpvr methods ?

so if the user is using a mvp, ill turn this feature off.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple lists like in Search Screen cncb 7 3,216 2012-08-08, 09:11 PM
Last Post: cncb
  How to prevent default screen background? cncb 28 8,207 2012-05-16, 08:28 PM
Last Post: ACTCMS
  Concatenate Name and Subtitle in Pending Recordings Screen Northpole 0 1,170 2011-09-20, 02:54 PM
Last Post: Northpole
  Settings config screen for class IEventNotification plugin imilne 9 3,439 2011-09-17, 06:06 PM
Last Post: sub
  Refresh Rate imilne 3 1,803 2011-09-04, 06:08 PM
Last Post: sub
  @channelIcon not available in all recording screen options Northpole 2 1,759 2011-07-29, 04:59 PM
Last Post: Northpole
  config.xml & unvisible steeb 9 3,093 2011-06-19, 12:16 AM
Last Post: steeb
  Calling NextPVR restart after config.xml changes steeb 33 10,102 2011-05-02, 04:24 PM
Last Post: steeb
  Skin question - how to centre a list UiList control on screen? McBainUK 2 1,811 2011-02-17, 08:46 AM
Last Post: McBainUK
  SkinHelper fall back to Default ACTCMS 4 1,936 2010-10-31, 03:03 PM
Last Post: ACTCMS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode