xna-4.0


When to use PresentationParameters.BackBufferWidth vs .Viewport.Width


Had to shorten the calls to make the question more readable but...
When is correct or incorrect to use on or the other ?
I guess in most cases is the same as you just have the one Viewport but if going split screen I guess you ll have more
Usually you want the viewport size, as this is the region within which rendering actually takes place.
If you ever add anything like split-screen or picture-in-picture rendering, then you must use the viewport. So you may as well use it to begin with.
You should use the backbuffer size only when that is what you actually want. For example, you want the backbuffer when taking screenshots, or setting viewport positions.
I've got a more detailed answer to a very similar question over on the game dev site.

Related Links

My program is being reported as a high-level security threat by AVG?
How to add an end screen in XNA 4.0?
Texture2D is way oversized in XNA 4.0?
How to set xna's TextureFilter to Point
Why doesnt my xna pixel shader turn this texture blue?
How to calibrate kinect skeleton data to video feed?
XNA game studio4.0 using c#
How to add collision detection in a 2D car game in XNA?
Texturing a terrain causes Windows Phone to crash (without an exception) or Models are not drawn afterwards
compiling and deploy window mobile phone platform games into xbox360 game platform with XNA 4.0
'Expected class, delegate, enum, interface,or struct' in XNA 4.0?
Having errors running JigLibX 0.3.1 on XNA 4.0
How to remove splash screen?
Layouting a row of bricks on the wall in XNA 4
Xbox 360 XNA HLS Streaming
XNA Reach profile

Categories

HOME
ibm-bluemix
xamarin
ionic-framework
osgi
testng
openmp
fluentd
mockito
tizen
json.net
layout
relative-path
syntax
cplex
routes
cakephp-2.5
google-project-tango
fingerprint
echarts
opengl-es-2.0
autotools
esper
dacpac
event-handling
fallback
visual-studio-cordova
libtiff
fatal-error
google-cloud-speech
lldb
facebook-instant-articles
telerik-reporting
claims-based-identity
dxf
rst2pdf
spring-mybatis
compatibility
quote
procdump
tinymce-4
socialengine
functor
vsts-build-task
windows-dev-center
xmlreader
android-nestedscrollview
file-format
restlet
xenforo
node-sass
sencha-touch-2.3
paxos
hendrix
kbuild
nsarray
memory-alignment
nbconvert
topbeat
time-and-attendance
medium.com
color-picker
slicknav
fody
mathematica-frontend
fuzzy-search
fputcsv
jwplayer7
spim
icu4j
cannon.js
django-unittest
ibaction
service-accounts
method-parameters
mmc
e10s
python-green
formatjs
qcodo
fluentautomation
concurrent-collections
commoncrypto
batterylevel
free-variable
angularjs-controller
hamiltonian-cycle
cisco-jtapi
google-email-migration
datawindow
pysimplesoap
ocx
jquery-ui-layout
semantic-diff
gnu-prolog
external-accessory
mod-auth
imac
mongomapper
html-input
site.master
web-application-design
dentrix
mirah
rescale
msdev
dbisam
.net-1.0
3gp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App