2020년 11월 14일 토요일

ECS - entity component system

 https://github.com/EngoEngine/ecs

 

system - 게임 로직

component - 데이터

entity - component의 묶음, id를 가짐

 

2020년 11월 13일 금요일

monogame 3.8.0.1641 on arch linux

  • install dotnet-runtime, dotnet-sdk
  • set PATH env vars
  • dotnet new -i MonoGame.Templates.CSharp::3.8.0.1641

monogame 3.8.0.1641 on ubuntu 20.10



https://docs.monogame.net/articles/getting_started/1_setting_up_your_development_environment_ubuntu.html

  • Install .NET Core SDK
    • Add repository:
      • wget https://packages.microsoft.com/config/ubuntu/20.0410/packages-microsoft-prod.deb -O /tmp/packages-microsoft-prod.deb
      • sudo dpkg -i /tmp/packages-microsoft-prod.deb
      • sudo vi /etc/apt/sources.list.d/microsoft-prod.list

deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/ubuntu/20.10/prod groovy main

      • sudo apt update
    • Install packages
  • Install MonoGame templates
  • Install MGCB Editor

















pop!os 20.10

kernel 5.8.0 (ryzen apu support?)

  • packages
    • ibus-hangul
    • keepassxc
    • syncthing
    • gnome-tweaks
    • telegram-desktop
    • dconf-editor
    • git-flow 
    • visual-studio-code ( from pop!shop & update)

 

  • packages for ebiten
    • libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev mesa-common-dev libxxf86vm-dev

https://drailing.net/2019/02/installing-ebiten-on-fedora/

 

2020년 11월 8일 일요일

vlc creates "zombie-process"

Change the video output to XCB & it closes properly .

 https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1876505

linux video encoding for ryzen renoir APU

  • install vaapi driver ( libva-mesa-driver )
    • VBR 5M 
      • ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=p010,hwupload' -c:v hevc_vaapi -b:v 5M -profile 2 output.mp4  
    • VBR 15M (too much?)
      • ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=p010,hwupload' -c:v hevc_vaapi -b:v 15M -profile 2 output.mp4

https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Verifying_VA-API

https://wiki.archlinux.org/index.php/Codecs_and_containers

https://trac.ffmpeg.org/wiki/Hardware/VAAPI

2020년 10월 26일 월요일

linux remapping mouse button to key

 https://wiki.archlinux.org/index.php/Mouse_buttons

 

install xbindkeys

vi ~/.xbindkeysrc
xbindkeys

# too much echo
#"xvkbd  -text "\[Return]""
#       m:0x0 + b:11
"xte 'keydown Return' 'keyup Return'"
  b:12

#  b:11

debian 13 trixie setup

install git fonts-firacode libwayland-bin for raylib libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libx...