// initialize jwplayer var playerInstance = jwplayer('player');// player dom elements var playerContainerEl = document.querySelector('.player-container');// returns video player position from top of document function getElementOffsetTop(el) { var boundingClientRect = el.getBoundingClientRect(); var bodyEl = document.body; var docEl = document.documentElement; var scrollTop = window.pageYOffset || docEl.scrollTop || bodyEl.scrollTop; var clientTop = docEl.clientTop || bodyEl.clientTop || 0; return Math.round(boundingClientRect.top + scrollTop - clientTop); }// returns the current y scroll position function getScrollTop() { var docEl = document.documentElement; return (window.pageYOffset || docEl.scrollTop) - (docEl.clientTop || 0); }// configure jwplayer instance playerInstance.setup({ autostart: true, playlist: 'https://cdn.jwplayer.com/v2/playlists/mYdavspX', primary: 'html5', setFullscreen: true, width: '100%' });// when jwplayer instance is ready playerInstance.on('ready', function() { var config = playerInstance.getConfig(); var utils = playerInstance.utils; // get height of player element var playerHeight = config.containerHeight; // flag determining whether close has been clicked var closed = true; // CHANGED // flag determing whether player is playing var playing = false; // ADDED // eventhandler for when close button is being pressed document.getElementsByClassName('icon-close')[0].addEventListener('click', () => { closed = true; onScrollViewHandler(); }); playerInstance.on('play', function() { closed = false; playing = true; // ADDED }).on('pause', function () { playing = false; // ADDED }).on('adPlay', function() { closed = false; // ADDED playing = true; // ADDED }).on('adPause', function() { playing = false; // ADDED });// get player element position from top of document var playerOffsetTop = getElementOffsetTop(playerContainerEl);// set player container to match height of actual video element playerContainerEl.style.height = playerHeight + 'px';// below we handle window scroll event without killing performance function onScrollViewHandler() { var minimized = getScrollTop() >= playerOffsetTop;if (closed && minimized) { minimized = false; jwplayer().pause(); playing = false; // ADDED } else if (!minimized && !playing) { closed = true; // ADDED } utils.toggleClass(playerContainerEl, 'player-minimize', minimized); // update the player's size so the controls are adjusted playerInstance.resize(); }// namespace for whether or not we are waiting for setTimeout() to finish var isScrollTimeout = false;// window onscroll event handler window.onscroll = function() { // skip if we're waiting on a scroll update timeout to finish if (isScrollTimeout) return; // flag that a new timeout will begin isScrollTimeout = true; // otherwise, call scroll event view handler onScrollViewHandler(); // set new timeout setTimeout(function() { // reset timeout flag to false (no longer waiting) isScrollTimeout = false; }, 80); };});

Back in April when Black Ops 3 was first revealed, Treyarch confirmed that Call of Duty: Black Ops 3 would run at 60FPS across platforms but only revealed the PS4 resolution of 1080p (and PC of up to 4k resolution). Treyarch stated that the resolution was to be announced for Xbox One, but that maintaining the 60 FPS would be the key factor in their decision in final resolution.

Today, EuroGamer has done their performance analysis on the Black Ops 3 beta on both Xbox One and PS4 and have confirmed that the Xbox One version is running at a resolution of 900p (1600×900). In comparison, last year’s Advanced Warfare launched with a resolution of 1360×1080. EuroGamer states that this lower resolution puts it behind the PS4’s version in that the textures are harder to see at longer distances.

The combination of the two isn’t great news for Xbox One though. Compared to the native 1080p PS4 version, buildings, foliage and distant objects appear considerably less defined with subtle normal map and texture details smudged over. This reduction in clarity also makes it harder to spot other players that are far away, particularly when they are crouched behind vehicles or lying prone within similarly colored scenery. Obviously, moving targets are easier to see, but stationary enemies tend to blur into the surrounding environment somewhat. Thankfully, the loss in visual sharpness isn’t enough to break the long-range gameplay – after all, everyone gets the same presentation on a fixed platform – but currently, based on what the beta has to offer, PS4 is the more preferable choice here, just as it was on Advanced Warfare.

However, the Xbox One version does beat out the PS4 version in one case – the FPS lock. The Xbox One version seems to be consistently at 60FPS, but the PS4 version has dropped to the lowest of 50FPS in the most intense multiplayer action.

This resolution on Xbox One can change before launch – Sledgehammer Games last year opted to, very close to launch, change Advanced Warfare’s resolution from 1600×900 to 1360×1080.

SOURCE: EuroGamer


comments below