Code Monkey home page Code Monkey logo

Comments (8)

JohnnyCrazy avatar JohnnyCrazy commented on May 27, 2024

I'm just trying to reproduce this, but sadly I can't.
The window is moving fine while music is playing, no stuttering at all @JimmyAppelt

from spotifyapi-net.

JimmyAppelt avatar JimmyAppelt commented on May 27, 2024

My god @JohnnyCrazy ... i just tested all apps en they are indeed running fine. I'm a lazy computer restarter (might had something to do with that 👎 )

My apologies for bringing this issue up.

If in any case i see any kind of behavior back ... i'l triple check !

from spotifyapi-net.

JohnnyCrazy avatar JohnnyCrazy commented on May 27, 2024

No Problem!

Although you are correct, with SynchronizingObject set to the form, it will run in the UI-Thread. But since only one small request is made to localhost, it should be running in about 1-10ms which is no problem for the UI. Maybe I will change this someday. Closing #45 then :)

from spotifyapi-net.

JimmyAppelt avatar JimmyAppelt commented on May 27, 2024

After all i wasn't drunk 😄

It appears on my machine if i'm running the example app or my own app for a longer period of time.

The thing is that it interferes with other features in my own app, that will have a small time out before these update and the UI will not go smoothly ether.

As for the time being i compiled the a .dll with async and await for my app use as current solution.

Could you tell why you designed the project with everything as event updates ?

from spotifyapi-net.

JohnnyCrazy avatar JohnnyCrazy commented on May 27, 2024

I ran the example for about 30 minutes but sadly couldn't reproduce window lags or similar. Which system are you running it on?

I maybe have one idea, will push it to another branch and maybe you could test it out

@JimmyAppelt

from spotifyapi-net.

stuntguy3000 avatar stuntguy3000 commented on May 27, 2024

This is about a year old, I suspect its no longer an issue now. /tsk

from spotifyapi-net.

JohnnyCrazy avatar JohnnyCrazy commented on May 27, 2024

Generally, if SynchronizingObject is set, the tick event will be run on that UI Thread. If you don't want this, you can remove it and invoke on the ui thread in every event. This will execute the http request in a separate thread.

Reopen if you still have issues

from spotifyapi-net.

JimmyAppelt avatar JimmyAppelt commented on May 27, 2024

Windows 10 64-bit

I needed to create another way to capture information from the local player itself.

Because of this issue and issue #51 :)

@stuntguy3000 such issue's don't magically disappear ;)

@JohnnyCrazy i would be happy to test it out, the only problem i have is issue #51 still

3a0a8a102282cdddfc881725fd349963

from spotifyapi-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.