# DspBufferSize GetPosition

**URL:** <https://qa.fmod.com/t/dspbuffersize-getposition/20994>\
**Category:** Unity\
**Created:** [December 15, 2023, 12:23am UTC](https://qa.fmod.com/t/dspbuffersize-getposition/20994 "2023-12-15T00:23:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guswnd325](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@guswnd325](https://qa.fmod.com/u/guswnd325)\
**Post date:** [December 15, 2023, 12:23am UTC](https://qa.fmod.com/t/dspbuffersize-getposition/20994/1 "2023-12-15T00:23:55Z")

</div>

hello. I am developing a rhythm game with Unity and FMOD, and it seems that the larger the DSPBUFFERSIZE, the longer the interval between GetPosition calls. Is there any way to solve this?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [December 15, 2023, 2:24am UTC](https://qa.fmod.com/t/dspbuffersize-getposition/20994/2 "2023-12-15T02:24:40Z")

</div>

Hi,

What version of the FMOD Integration are you using?

Unfortunately, I was not able to reproduce the issue with a simple test. Could you elaborate on how you are testing the duration/noticing the difference?

---

<div class="post-metadata">

**Author:** ![guswnd325](https://avatars.discourse-cdn.com/v4/letter/g/c6cbf5/32.png) [@guswnd325](https://qa.fmod.com/u/guswnd325)\
**Post date:** [December 15, 2023, 2:50am UTC](https://qa.fmod.com/t/dspbuffersize-getposition/20994/3 "2023-12-15T02:50:45Z")

</div>

I use version 2.02.19,  
SetDspBufferSize(2048,4) =\> Time taken to retrieve timeline: approximately 40ms  
SetDspBufferSize(64,4) =\> Time taken to retrieve timeline: approximately 20ms  
(Use GetTimelinePosition)

I am setting the note position in proportion to the song playback time, but if I set the buffer size high, it takes more time to get the timeline time accurately, so the notes appear to be broken and moving.  
Is there a way to accurately and quickly find out the time of the timeline, i.e. the current playback time?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [December 20, 2023, 12:27am UTC](https://qa.fmod.com/t/dspbuffersize-getposition/20994/4 "2023-12-20T00:27:27Z")

</div>

Hi,

Thank you for the information. I was still unable to reproduce the problem.

Would it be possible to get a copy of your project or a stripped-down version displaying the issue [uploaded](https://fmod.com/profile#uploads) to your [profile](https://fmod.com/profile)? Please note you will have to register a project with us before you can upload files.
