Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - jalov

Pages: [1]
D / Drawing in threads
« on: February 22, 2017, 01:10:38 pm »
dfsml 2.1

Working with DSFML has been very pleasant and fairly painless so far, but now I've hit a bit of a snag.

When I call window.display in a thread I get an error "Failed to activate the windows context". I've set window inactive in the main thread and tried to pass a window to the animation thread but that's not possible, no overloads for that.

If I dont call window display in the thread the animation still works but is somewhat irregular (probably because the call to display in the main thread and the sleep in the animation thread are not coordinated).

The documentation on Drawing from Threads says "to be done later", so I guess this simply isn't implemented yet? Any work arounds?

D / Error when closing window
« on: May 19, 2015, 04:15:08 pm »
I've been checking out dsfml and it looks very promising.

When trying out the sample code (the one with the smiley) I ran into a problem. In order to get rid of the console window, I added the linkerflag "-L:/su:windows" to dub.json. It does suppress the console window but now when I exit the app I get an InvalidMemoryOperationError.

Any thoughts?

Pages: [1]