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.

Messages - eXpl0it3r

Pages: [1] 2 3 ... 614
General / Re: Problem at the beginning
« on: July 18, 2019, 06:42:56 pm »
If you follow the tutorial step by step it will work.
You don't need to specify files, as the linker will automatically look for versions with lib prefix and .a suffix.
The order of the libraries is important.

Feature requests / Re: batch draw
« on: July 18, 2019, 09:23:09 am »
Please use the code tags when posting code. ;)

You can do your own batching with vertex arrays/buffers.

Doing hidden batching under the hood brings quite a few issues and edges cases on their own. So I think it's better to let the users implement the batching in a way that will fully fit their use-case.

General / Re: Calculating the gradient of a line
« on: July 17, 2019, 06:41:22 pm »
If you have a point a x1=5 and a point at x2=7, then 5-7 = -2 so it goes to the negative direction, but 7-5 = 2 so it goes to the positive direction.

This can also be solved by using the absolute value and multiplying by the direction you need to go, but if you know the direction from the start, you can also just change the parameters around.

It's really just some math. :)

General / Re: Wrong Screen ratio
« on: July 16, 2019, 08:18:34 am »
If you request a resolution that doesn't match your monitor ratio, then your monitor will stretch or fit in some ways.

General / Re: SFML static linking
« on: July 12, 2019, 06:26:18 pm »
The $^ needs to be before the libraries, otherwise the source file won't know about the libraries.
Always follow the rule of thumb: If X depends on Y, X has to come before Y.

General / Re: Access Violation Reading Location - Window.display()
« on: July 11, 2019, 12:21:35 am »
Not sure why you would disable your dedicated graphics card, but since you do have dual "GPU", you need to make sure when running your application that it actually runs on the wanted GPU. By default and in debug mode, the application will usually run on the integrated chip.

As suspected, your driver is infact not up-to-date, but not sure if that will fix the driver issue:

Date: 06/19/2019
Version: (Latest)


General / Re: Access Violation Reading Location - Window.display()
« on: July 10, 2019, 11:50:58 pm »
So what's your computer specs?
And what's the current driver version you've installed?

General / Re: Wrong Screen ratio
« on: July 10, 2019, 10:54:21 pm »
You mean in fullscreen mode?

General / Re: Access Violation Reading Location - Window.display()
« on: July 10, 2019, 07:08:48 am »
There are no pdb files for most DLLs.

The cradh seems to happen inside the Intel driver.
Make sure you install the newest Intel "GPU" driver.

General / Re: Blue spinning wheel instead of cursor over application
« on: July 09, 2019, 08:30:52 am »
Are you processing events, i.e. do you have an event loop?

General / Re: Vsynch CPU usage is unusual
« on: July 08, 2019, 05:13:44 pm »
Depends. In a perfect world, you could expect that, but it's not unheard of that some GPU drivers just implement a busy-waiting loop of some sort, so your vsynch wait just loops until the next frame needs to be rendered, thus the CPU usage can be quite high.
Not sure if that's the case on your end. Do you render 60fps or do you render more than that with vsync on?

General / Re: Vsynch CPU usage is unusual
« on: July 08, 2019, 03:17:21 pm »
vsync can be disabled in most GPU settings, so even when SFML requests it, it doesn't guarantee to be set.
Check your GPU settings.

Feature requests / Re: Image saving
« on: July 04, 2019, 11:09:55 pm »
If you want discuss OutputStream, I suggest to create a new topic on this subject, as I'm sure it will be more than just a simple API design that needs discussion for it. ;)

Personally, I think both saveToMemory and saveToStream are things that could be added, but as it stands saveToMemory doesn't really require yet another feature to be written first and it's something Ventus seems to be willing to implement, so maybe lets first focus on that here, while in parallel we can discuss implementations for sf::OutputStream in another thread.

General / Re: Linking trouble VS 2019 + Clang
« on: July 02, 2019, 05:41:45 pm »
Your CMake library definition order is wrong.
It should always follow the "X depends on Y, so X has to come before Y"-rule.

sfml-system, sfml-window, sfml-graphics, sfml-audio, sfml-network

With SFML 2.5 you can also just specify sfml-graphics and the CMake config will automatically link against sfml-window and sfml-system.

Feature requests / Re: Image saving
« on: July 02, 2019, 07:09:32 am »
I thought we had a saveToFile on the font, but we don't, so it's okay to also not have a saveToMemory. :)

Pages: [1] 2 3 ... 614