Try โ€‚โ€‰HackMD

Lien de la note Hackmd

Cadences en pratique

On a des problemes de precisions

Tout est entier:

  • PTS: temps image source
  • STC: temps horloge affichage

Resolution d'increment: TIR

  • TIR(PTS) = duree d'une seconde dans le flux video
  • TIR(STC) = duree d'une seconde a l'affichage

Si TIR(PTS) non % TIR(STC), probleme de

\colorredfraction continue!

Exemple

TIR PTS = 90000 = 1 seconde

Supposons STC = timer hardware a 5 KHz

  • TIR(STC)
    =5000

Pour un affichage a 50 fps:

  • ฮ”STC=5000/50=100
    (TIR %)

Comment comparer STC avec TIR(STC) = 5000 vs PTS avec TIR(PTS) = 90000

Produit en croix

STCโ€ฒ=STCร—TIR(PTS)/TIR(STC)=STCร—18

STC' comparable avec PTS

Mais jitter de STC multiplie par

18

Adaptation source 59,97 ips -> affichage 60 ips

  • Theoriquement: adaptation par repetition 1 image sur 1000
  • En pratique: jitter PTS + jitter STC
    • Tremblement du criteres PTS - STC

Bufferisation

On veut envoyer a l'affichage une image a l'heure !

On fait de la bufferisation pour les jeux CGI realtime

Bufferisation: art de choisir l'image a afficher

Il faut qu'il y ait toujours une image a l'ecran

Bufferisation non VSYNC

Envoyer le backbuffer suivant des qu'il est pret

Avantages:

  • Un seul backbuffer
  • Rapide

Inconvenient:

  • \colorredTearing back/front

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Bufferisation VSYNC

Permutter frontbuffer et back buffer

Avantages

  • Pas de tearing

Inconvenient

  • \colorredProducteur aussi leant que l'afficheur

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Notre jeu/application va etre ralenti

C'est le meme phenomene que celui du passage des jeux japonais aux consoles europeennes avec des jeux

20% plus lent

Bufferisation triple + VSYNC

Deux backbuffers composes en alterance

  • Au VSYNC: envoyer le backbuffer pret en front buffer
  • Avantages
    • Pas de tearing
    • Decouplage cadence production vs affichage
  • Inconvenients
    • \colorredDeux backbuffers
    • \colorredCPU/GPU a donf

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Comment afficher ?

Comment cadrer l'image dans l'ecran ?

  • En frequence
  • En phase

En frequence:

  • Pulses verticaux: VSYNC
  • Pulses horizontaux: HSYNC

En phase:

  • Palliers avant/arriere

Pulses et palliers normalises

VGA, DVI, HDMI: Display Data Channel => Extended Display Identification Data

Xorg: "Modelines"

Cadrage d'une image

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

  • Vertical blanking
  • Horizontal blanking

DVI/HDMI

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

HDMI 3D

Comment afficher des images 3D ?

  • Plusieurs formats 3D numeriques
  • Dans tous les cas, pixel clock
    ร—2

Checkerboard (NVIDIA):

  • VBlank + VSync
  • HSyncs + Lignes de pixels OG/OD en quinconce
  • Lignes deux fois plus larges

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Frame pack (HDMI 1.4A)

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Analogique

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’