You are not logged in.

#1 2019-07-19 10:13:13

Lamarn
Member
Registered: 2019-07-19
Posts: 1

Locked to 60 frames in fullscreen with sfml code example

Hey guys,
I already asked in the sfml forums about my problem. Here is the link: https://en.sfml-dev.org/forums/index.php?topic=25589

I am building the sample code for the green circle with vsync enabled (both in code and nvidia tool). I am using arch linux with newest driver and sfml distributed by the package manager. The problem I found, is the difference in frames I get, dependent on being in fullscreeen or not. This monitor can reach 144 fps and this works fine for windowed mode. But if I put the same code into fullscreen, it is locked to 60 fps. I checked it by using a coded fps counter and also the nvidia tool.

Unfortunately I do not know if this problem is caused by sfml itself. I will also ask in the arch linux forums for this kind of problem. But maybe someone can help :)

So this could be a problem in arch linux, maybe caused by the nvidia driver. That is why I ask here too.

The monitor is GSync compatible. It is called AOC g2460. The nvidia control panel also confirms that GSync is enabled and working.

This is the local computer configuration:

System:
  Host: lev-ssd-arch Kernel: 5.2.1-arch1-1-ARCH x86_64 bits: 64 
  Desktop: Gnome 3.32.2 Distro: Arch Linux 
Machine:
  Type: Desktop System: Dell product: OptiPlex 9020 v: 01 
  serial: <root required> 
  Mobo: Dell model: 0N4YC8 v: A00 serial: <root required> UEFI: Dell v: A12 
  date: 05/06/2015 
CPU:
  Topology: Quad Core model: Intel Core i5-4590 bits: 64 type: MCP 
  L2 cache: 6144 KiB 
  Speed: 3293 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 3293 2: 3293 
  3: 3293 4: 3293 
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics 
  driver: N/A 
  Device-2: NVIDIA GM107 [GeForce GTX 750] driver: nvidia v: 430.34 
  Display: x11 server: X.org 1.20.5 driver: nvidia 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: GeForce GTX 750/PCIe/SSE2 v: 4.6.0 NVIDIA 430.34 
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio 
  driver: snd_hda_intel 
  Device-2: Intel 8 Series/C220 Series High Definition Audio 
  driver: snd_hda_intel 
  Device-3: NVIDIA driver: snd_hda_intel 
  Sound Server: ALSA v: k5.2.1-arch1-1-ARCH 
Network:
  Device-1: Intel Ethernet I217-LM driver: e1000e 
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 98:90:96:e3:91:ed 
Drives:
  Local Storage: total: 715.39 GiB used: 56.75 GiB (7.9%) 
  ID-1: /dev/sda vendor: SK Hynix model: SH920 2.5 7MM 256GB 
  size: 238.47 GiB 
  ID-2: /dev/sdb vendor: SK Hynix model: SH920 2.5 7MM 256GB 
  size: 238.47 GiB 
  ID-3: /dev/sdc type: USB vendor: Western Digital 
  model: WD My Passport 25F3 size: 238.44 GiB 
RAID:
  Hardware-1: Intel SATA Controller [RAID mode] driver: ahci 
Partition:
  ID-1: / size: 122.20 GiB used: 15.12 GiB (12.4%) fs: ext4 dev: /dev/sdc2 
Sensors:
  System Temperatures: cpu: 34.0 C mobo: N/A gpu: nvidia temp: 30 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 40% 
Info:
  Processes: 244 Uptime: 1h 43m Memory: 15.57 GiB used: 3.25 GiB (20.9%) 
  Shell: bash inxi: 3.0.35 
xrandr:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00 + 144.00*  119.98    99.93    84.90  

Bildschirmfoto-von-2019-07-19-12-24-49.png
Bildschirmfoto-von-2019-07-19-12-24-59.png
Program is running in fullscreen and locked to 60fps:
fullscreen.png
Program is NOT running in fullscreen and locked to 144fps (like it should be):
not-fullscreen.png

Last edited by Lamarn (2019-07-19 10:27:35)

Offline

#2 2020-03-05 00:06:04

JinxterX
Member
Registered: 2012-01-19
Posts: 11

Re: Locked to 60 frames in fullscreen with sfml code example

Try this: In the NVIDIA X Server Settings go to X Server Display Configuration, Advanced and make sure both  Force Composition Pipeline and Force Full Composition Pipeline are NOT selected.

Offline

#3 2020-03-05 02:23:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Locked to 60 frames in fullscreen with sfml code example

I will use this opportunity to close this old thread.

JinxterX; Be advised that the OP has not visited the forums for seven months


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB