Auto refresh - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

Auto refresh

  • 19 Replies
  • 4397 Views
*

Offline reyalp

  • ******
  • 14121
Re: Auto refresh
« Reply #10 on: 30 / April / 2021, 14:22:40 »
Advertisements
From the developments in https://chdk.setepontos.com/index.php?topic=12788.190 some improvement to the overall stability of the display possible in the not too distant future, either using the Ximr stuff, or philmoz replacement for the guard pixel. I'd be inclined to see how that shakes out before adding new script features.

I don't have a peek based solution off the top of my head, it's not a simple "check this already known variable".

ML is a different code base and is entirely irrelevant.
Don't forget what the H stands for.

Re: Auto refresh
« Reply #11 on: 30 / April / 2021, 16:26:52 »
@reyalp

Many thanks for the insight and education.

Looking forward to testing future builds in the trunk.

Cheers

Garry

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Auto refresh
« Reply #12 on: 01 / May / 2021, 18:40:30 »
@pigeonhill


Here is a test build for the M3 with the new screen refresh logic.


Let me know if this helps with your script display refresh.


Phil.



CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Auto refresh
« Reply #13 on: 02 / May / 2021, 08:06:46 »
@philmoz

I've tried that build and it won't run on my M3. Cam won’t switch on when card is locked.

Checked card and cam, ie unlocked the card and all is OK.

Tried multiple times: maybe the build got corrupted?

Also is it the fmath version  ;)

Cheers

Garry
« Last Edit: 02 / May / 2021, 08:34:57 by pigeonhill »


*

Offline reyalp

  • ******
  • 14121
Re: Auto refresh
« Reply #14 on: 02 / May / 2021, 13:53:10 »
Also is it the fmath version  ;)
FWIW, philmoz added fmath to the trunk in build 5861, so it's available in the standard autobuilds now.
Don't forget what the H stands for.

Re: Auto refresh
« Reply #15 on: 02 / May / 2021, 14:25:02 »
@reyalp

Quote
FWIW, philmoz added fmath to the trunk in build 5861, so it's available in the standard autobuilds now.

Great to know.

Hopefully @philmoz will get to the bottom of why his latest 120f M3 build won’t work on my M3.

Cheers

Garry

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Auto refresh
« Reply #16 on: 02 / May / 2021, 17:56:32 »
@pigeonhill


Sorry about that. Here is a new version that will hopefully work better.


Phil.

CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Auto refresh
« Reply #17 on: 03 / May / 2021, 01:37:18 »
@philmoz

Phil

Thanks, that loads OK; as for feedback: initial reaction is to say, nothing has changed.

That is, the display still has the same characteristics as before, eg when the Canon (sic) histogram is displayed, CHDK, eg menu or histogram, flashes continuously.

But, of course, I don't know what I'm looking for regarding changes.

As I said earlier, what I'm trying to achieve in my script is to auto refresh things, eg via looking for a 'guard pixel'. But I can't do that in Lua at the moment.

At the moment, I get around these clashes between Canon and CHDK, by coming out ALT mode, while the script is running, which is a feature of the script anyway, and cycling through INFO, ie to remove the Canon histogram.

BTW thanks for putting fmath in the trunk: I can get rid of a pcall test now, ie to test for the fmath library ;-)

Cheers

Garry


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Auto refresh
« Reply #18 on: 03 / May / 2021, 01:50:28 »
@pigeonhill


Ok, thanks for testing. The change here is to better detect when the screen has been updated and the CHDK UI needs to be redrawn.


When you have the histogram on the display gets refreshed very often which is why the CHDK UI flickers - it is constantly being erased by the firmware and then redrawn.


That's not fixable unless we can implement drawing on our own bitmap layer and merging into the display pipeline - there has been some good progress on this and I have preliminary version working on the G7X2 - so perhaps sometime in the near future this might be available.


Phil.

CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Auto refresh
« Reply #19 on: 03 / May / 2021, 02:09:19 »
@philmoz

Good to know and thanks for the heads up of potential future stuff: fingers crossed  ;)

I'm more than content with the fmath: 'solving' the other stuff, like flickering, will be icing on the cake for me.

Cheers

Garry

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal