Skip to main content
gamedev.net
🔒 Locked

Locking destination surface...

Started by Real World 0 replies 150+ views
Original Post
Real World
Real World
At the moment I am using
	pBackSurface->LockRect( &m_Locked, 0, 0 );

	pBackSurface->UnlockRect();

	DWORD* pData = (DWORD*)(m_Locked.pBits);
 
to get info on the back buffer and the pointer to the start of the surface. Unfortunately doing it once per frame is very costly to the speed of my game. I tried only using it on initialisation but this causes strobing on each frame. Is there any alternative? Planetblaze.com - www.planetblaze.com - As METAL as it gets!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.