Sign up ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

How can I disable or enable multi-sampling live while the program is rendering?

I tried this.

    public override void Draw(GameTime gameTime)

        GraphicsDevice.PresentationParameters.MultiSampleCount = 0;

        ... draw stuff ...


But it doesn't disable the multisampling while drawing, because setting "PreferMultiSampling" to true under the presentation parameters when starting the program apparently overwrites this. Or am I wrong?

How can I do this?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

PresentationParameters tells you the current settings of the GraphicsDevice. It's a readout. You're not supposed to modify it.

You need to change the settings on the GraphicsDeviceManager (see MSDN, the default template creates one called graphics as a member of your Game class), and then call ApplyChanges().

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.