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
Exemple
TIR PTS = 90000 = 1 seconde
Supposons STC = timer hardware a 5 KHz
Pour un affichage a 50 fps:
Comment comparer STC avec TIR(STC) = 5000 vs PTS avec TIR(PTS) = 90000
STC' comparable avec PTS
Mais jitter de STC multiplie par
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:
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
Inconvenient
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 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
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 cadrer l'image dans l'ecran ?
En frequence:
- Pulses verticaux: VSYNC
- Pulses horizontaux: HSYNC
En phase:
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
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 โ