Meta Tag viewport7 • Introduit pour iPhone8, puis standard de fait – Par défaut, l’affichage est réduit (980px affichés sur écran 320px) – Meta tag viewport permet de changer ce ratio • viewport : display display area ≠ rendering surface • Mobiles : viewport > écran (iphone 3 : v:980 / é:320) • Media queries comparent au viewport 6https://developer.mozilla.org/fr/docs/CSS/Media_queries 7https://blog.javierusobiaga javierusobiaga.com/stop-using-the-viewport-tag-until-you-know-ho 8https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/Usi ngtheViewport/UsingtheViewport.html
Instrument expensive destructors
• or explicitly release smart objects at the end of a scope
bool Viewport::load_scene(const char* filename)
{
ZoneScoped;
// ...
std::shared_ptr new_scene; Instrument expensive destructors
• or explicitly release smart objects at the end of a scope
bool Viewport::load_scene(const char* filename)
{
ZoneScoped;
// ...
std::shared_ptr new_scene;