2.8 sec instead of 8 secs DNG capture ! - General Discussion and Assistance - CHDK Forum

2.8 sec instead of 8 secs DNG capture !

  • 3 Replies
  • 2121 Views
*

Offline Lebeau

  • ***
  • 187
2.8 sec instead of 8 secs DNG capture !
« on: 30 / June / 2011, 14:41:48 »
Advertisements
Well, I change dng capture module and my A650is get a picture in 2.8 sec instead of 8 secs.

But it's in direct capture. When using the following LUA script,
Code: [Select]
--[[
@title Shoot
--]]
proptable=require "propcase"

function takeashut(success)
    --- take the zero shot
    press("shoot_half")
    repeat
    until get_shooting() == true
    press("shoot_full")
    repeat
    until get_shooting() == true
    release("shoot_full")
    repeat
    until get_shooting() == false
    release("shoot_half")
    repeat
    until get_shooting() == false
return success
end

success=takeashut(1)
It takes 5.8 secs :( Don't know why since the timer shall only display delay within raw.c (including dng.c) timing. Am I wrong?

N.B.: I use debug timer to get timing

*

Offline reyalp

  • ******
  • 14125
Re: 2.8 sec instead of 8 secs DNG capture !
« Reply #1 on: 30 / June / 2011, 22:51:06 »
you should have sleep(10) in your repeat loops, otherwise the kbd task will hog all the CPU.
Don't forget what the H stands for.

*

Offline Lebeau

  • ***
  • 187
Re: 2.8 sec instead of 8 secs DNG capture !
« Reply #2 on: 01 / July / 2011, 09:32:42 »
Aaahh ! Got point !

*

Offline Lebeau

  • ***
  • 187
Re: 2.8 sec instead of 8 secs DNG capture !
« Reply #3 on: 01 / July / 2011, 17:37:27 »
My DNG thumbnail is at 1/8 scale (40x30) instead of 128x96 so I use about 10% of the original space.

I also initialize DNG header buffer and alter shoot-only DNG data.

Concerning Lua delay, with sleep(10), it takes now about 0.1 sec more (2.9 sec)

Thanks reyalp

 

Related Topics


SimplePortal © 2008-2014, SimplePortal