DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th December 2018
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Question Games are slow on OpenBSD 6.4

Hi,
I change my PC and installed games (redeclipse, sauerbraten...) but after launching them games are slow.

dmesg
Code:
OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4277862400 (4079MB)
avail mem = 4138934272 (3947MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfcd00 (28 entries)
bios0: vendor American Megatrends Inc. version "P1.80" date 04/09/2009
bios0: ASRock ALiveNF6G-GLAN
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB AAFT SSDT
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) NSMB(S4) USB0(S4) USB2(S4) NMAC(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Phenom(tm) II X4 955 Processor, 3215.14 MHz, 10-04-03
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: AMD erratum 721 detected and fixed
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) II X4 955 Processor, 3214.64 MHz, 10-04-03
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu1: AMD erratum 721 detected and fixed
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) II X4 955 Processor, 3214.64 MHz, 10-04-03
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu2: AMD erratum 721 detected and fixed
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD Phenom(tm) II X4 955 Processor, 3214.64 MHz, 10-04-03
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
cpu3: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu3: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu3: AMD erratum 721 detected and fixed
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 24 pins, remapped
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 2 (BR10)
acpiprt3 at acpi0: bus 3 (BR11)
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpicpu1 at acpi0: C1(@1 halt!), PSS
acpicpu2 at acpi0: C1(@1 halt!), PSS
acpicpu3 at acpi0: C1(@1 halt!), PSS
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
cpu0: 3215 MHz: speeds: 3200 2500 2100 800 MHz
pci0 at mainbus0 bus 0
"NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2
nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic0 addr 0x53: 2GB DDR2 SDRAM non-parity PC2-6400CL5
iic1 at nviic0
"NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 4 int 5, version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA MCP61 USB" rev 0xa3: apic 4 int 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1
pci1 at ppb0 bus 1
xl0 at pci1 dev 8 function 0 "3Com 3c905C 100Base-TX" rev 0x78: apic 4 int 10, address 00:0a:5e:1d:fc:5f
exphy0 at xl0 phy 24: 3Com internal media interface
azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 4 int 11
azalia0: codecs: Realtek ALC662
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TSSTcorp, CD/DVDW SH-S162A, TS02> ATAPI 5/cdrom removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide1: using apic 4 int 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD1500ADFD-00NLR5>
wd0: 16-sector PIO, LBA48, 143089MB, 293046768 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
pciide2 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide2: using apic 4 int 10 for native-PCI interrupt
ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci2 at ppb1 bus 2
radeondrm0 at pci2 dev 0 function 0 "ATI Radeon HD 7850" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 4 int 10
azalia1 at pci2 dev 0 function 1 "ATI Radeon HD 7700 Audio" rev 0x00: apic 4 int 11
azalia1: no supported codecs
ppb2 at pci0 dev 11 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci4 at ppb3 bus 4
pchb0 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb3 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627EHF rev 0x63
lm1 at wbsio0 port 0x290/8: W83627EHF
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
vmm0 at mainbus0: SVM/RVI
uvideo0 at uhub0 port 1 configuration 1 interface 0 "Logitech Webcam C270" rev 2.00/0.10 addr 2
video0 at uvideo0
uaudio0 at uhub0 port 1 configuration 1 interface 2 "Logitech Webcam C270" rev 2.00/0.10 addr 2
uaudio0: audio rev 1.00, 2 mixer controls
audio1 at uaudio0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (72390de7975f98f9.a) swap on wd0b dump on wd0b
initializing kernel modesetting (PITCAIRN 0x1002:0x6819 0x174B:0xE221).
radeondrm0: 1280x1024, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
The video card is an HD 7850 Radeon.
Why the games are slow?

Peace.

Last edited by ripe; 11th December 2018 at 07:36 PM.
Reply With Quote
  #2   (View Single Post)  
Old 11th December 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

From the dmesg(), I can see that you have a Radeon PITCAIRN series graphics card. I've just seen a reddit thread and bug report about acceleration for this series.
  1. It's a known limitation at this time: there is no libLLVM-enabled Mesa in Xenocara (OpenBSD's X.org implementation).

    https://www.reddit.com/r/openbsd/com...ssues/eaysfz1/
  2. It is possible to build a libLLVM-enabled Mesa yourself, it requires using LLVM 6.0 from ports/packages.

    https://marc.info/?l=openbsd-bugs&m=154389359919324&w=2
Reply With Quote
  #3   (View Single Post)  
Old 11th December 2018
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default

Ok thank you jggimi I will try it.
Reply With Quote
  #4   (View Single Post)  
Old 30th December 2018
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default

Hi jggimi,

As said in the link:
https://marc.info/?l=openbsd-bugs&m=154389359919324&w=2

I installed libelf and llvm packages but then I do not understand:

Install libelf and llvm packages, apply the below patch and then build
xenocara.

Code:
Index: lib/mesa/Makefile.bsd-wrapper
===================================================================
RCS file: /cvs/xenocara/lib/mesa/Makefile.bsd-wrapper,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile.bsd-wrapper
--- lib/mesa/Makefile.bsd-wrapper	23 Oct 2018 06:35:32 -0000	1.21
+++ lib/mesa/Makefile.bsd-wrapper	4 Dec 2018 02:44:28 -0000
@@ -11,7 +11,7 @@ GALLIUM_DRIVERS=	swrast
 
 .if ${MACHINE} == i386 || ${MACHINE} == amd64
 DRI_DRIVERS=swrast,radeon,r200,i915,i965
-GALLIUM_DRIVERS=swrast,r300,r600
+GALLIUM_DRIVERS=swrast,r300,r600,radeonsi
 .endif
 
 .if ${MACHINE} == arm64 || ${MACHINE} == loongson || \
@@ -23,7 +23,8 @@ GALLIUM_DRIVERS=swrast,r300,r600
 CONFIGURE_ARGS=		--with-dri-drivers=${DRI_DRIVERS} \
 			--with-gallium-drivers=${GALLIUM_DRIVERS} \
 			--disable-silent-rules \
-			--disable-llvm \
+			--enable-llvm \
+			--with-llvm-prefix=/usr/local \
 			--disable-glx-tls \
 			--disable-regen-sources \
 			--enable-gles1 --enable-gles2 \
@@ -70,6 +71,25 @@ O2= ${O1} -fthread-jumps -fcrossjumping 
 
 CONFIGURE_ARGS+=       USER_CFLAGS="-O0 ${O2}"
 .endif
+
+PKGCONFIG_LIBDIR=	/usr/lib/pkgconfig:${X11BASE}/lib/pkgconfig:/usr/local/lib/pkgconfig
+
+XENOCARA_PATH=	/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
+
+config.status:
+	PKG_CONFIG_LIBDIR="${PKGCONFIG_LIBDIR}" \
+	CONFIG_SITE=$(CONFIG_SITE) \
+	CC=${CC} \
+	CFLAGS="${CFLAGS}" \
+	CXX=${CXX} \
+	CXXFLAGS="${CXXFLAGS}" \
+	AR_FLAGS="cruD" \
+	MAKE="${MAKE}" \
+	PATH=$(XENOCARA_PATH) \
+		sh ${_SRCDIR}/configure --prefix=${X11BASE} \
+		--sysconfdir=/etc \
+		--mandir=${X11BASE}/man \
+		${CONFIGURE_ARGS}
 
 ${.OBJDIR}/src/util/format_srgb.c:
 	lndir -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}
I tried some of the command manually but I failed. I do not understand what to do. Can you help me?

Peace,
ripe
Reply With Quote
  #5   (View Single Post)  
Old 30th December 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,020
Default

The Email in the bugs@ mailing list archive I referred to contains a source code patch for xenocara, the OpenBSD redeployment of X.org, in the form of a unified diff(1) against revision 1.21 of /usr/xenocara/lib/mesa/Makefile.bsd-wrapper. This patch is against -current, as the source file was at revision 1.20 at 6.4-release.

Step 1. Upgrade to the most recent -current snapshot. The Following -current FAQ should be reviewed in the event you need to make any manual changes to your system.

Step 2. Obtain the -current xenocara source tree. Instructions for obtaining source from a nearby CVS repository mirror can be found in the release(8) man page and the AnonCVS web page at the Project website.

Step 3. Download the Email message body in raw form. There's a link in the archive web page. That downloaded file can be applied directly with patch(1). You'll need to cd to /usr/xenocara before issuing the patch() command, as the patch needs to be run from the xenocara top level directory.

Step 4. Build xenocara. Instructions are in step 5 in the release(8) man page.
Reply With Quote
  #6   (View Single Post)  
Old 31st December 2018
albator albator is offline
Shell Scout
 
Join Date: Jul 2011
Posts: 98
Default

I just played Tetris from the BSD Games, and it is amazingly fast!
In fact, OpenBSD might not be the best OS to play games. This link mentions a few interesting ones: https://mrsatterly.com/openbsd_games.html
In your case, you may want to stick with 2D games or with old consoles emulators before your graphic card gets 3D acceleration.
Your CPU (AMD Phenom X4 955) includes a GPU. Though much less powerful than a Radeon HD 7850 it might work better with the games you aim to play.
Reply With Quote
  #7   (View Single Post)  
Old 2nd January 2019
ripe's Avatar
ripe ripe is offline
Package Pilot
 
Join Date: Feb 2013
Location: France
Posts: 179
Default

Ok thank you jggimi.
@albator nice idea.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD slow internet? guitarscn OpenBSD General 4 27th November 2010 05:25 PM
your 3 favorite games welkin FreeBSD Ports and Packages 17 5th June 2010 08:26 PM
dd slow, 1500KB/s (OpenBSD LiveCD) Carpetsmoker OpenBSD General 4 3rd October 2008 10:33 AM
Problem with no sound in games troberts FreeBSD General 9 21st July 2008 08:53 PM
CrossOver Games for BSD udragon FreeBSD General 6 27th May 2008 08:59 AM


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick