Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] importing modules slows trials down?

edited January 2014 in OpenSesame

Hi,

My stimulus (produced by an inline script within a block loop) works fine and the timing seems accurate, except that after it has presented the necessary stimuli, it lingers for a long time. I suspect a major cause for this is that the script needs to import psychopy and numpy in the beginning of every trial.

Is there any way around this? I suppose that if I move the loop to within the inline script, then I may run into some trouble with coordinating with the eye-tracker from trial to trial.

Markku

Comments

  • edited May 2012

    Hi Markku,

    The import statements shouldn't slow things down in any noticeable way, except the first time. I suspect that the trial_sequence contains some things that need to be prepared, such as sketchpads, synthesizers, etc. The way it works is that these items are prepared before the execution of every sequence, to minimize timing glitches during the sequence, at the expense of some unpredictable variation between sequences.

    What I usually do is insert a blank display (or fixation dot) at the end of the sequence. That way the participants don't feel as though the experiment is 'sluggish'.

    Does that answer your question?

    Cheers,
    Sebastiaan

  • edited 8:22AM

    Thanks,

    Ok, a blank screen with a fixation mark could suffice. What would be even better is displaying the (variable) preparation screen of the next trial. Is there any way to get a block variable value of the next trial. I suppose I need to see if there I can streamline my stimulus code a bit as well:)

    Markku

  • edited 8:22AM

    Well, what you could do is insert an inline_script at the start of the trial sequence to show a display already in the prepare phase (inline_scripts have different tabs for both phases). This is unconventional, because the prepare phase is usually the place where you would engage in invisible preparatory stuff. But nothing stops you from breaking convention.

  • edited 8:22AM

    FYI, if you are using the legacy back-end, cancelling the double buffering and the hardware surface realy speeds things up (at least for me it did, I'm using an eight yearold computer though). I guess it has it's disadvantages but for me it prevented 0.5 sec trials to become 1.5 secs, which would of made my experiment pretty tiresome.

    Ezer

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games