Project

General

Profile

Actions

Emulator Issues #4320

closed

OSX texture related slowdowns from changing GL_TEXTURE_MAX_LEVEL

Added by newjunk over 13 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
OS X
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
Yes
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem?

In Bowling in Wii Sports, the frame rate while bowling drops in half to 30fps from 60fps while in the bowling sequence. I've found from profiling with the opengl driver monitor and some experimentation that calls to setTexParamIfNeeded(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, ..) were causing the opengl driver to do slow (non-DMA) copies of texture back to RAM from the video card. Disabling calls to set GL_TEXTURE_MAX_LEVEL in Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp eliminated the slowdown entirely. The only issue I found with doing this is that textures aren't displayed correctly when the Load Native Mipmaps option is enabled.

Dolphin version with the problem (as it appears in the title bar, Ex.: "R
4779" or "R 6403M"):

(optional) Dolphin version that does not have the problem:

Operating system and version:
32-bit or 64-bit:
64 bit, OSX 10.6.6, MacBook Pro (2.4GHz Core i5, with NVIDIA GeForce GT 330M)

Game ID (as it appears in game properties, Ex.: "GZ2P01" or "RSBE01"):

RSPE01

Build command-line (not on Windows):

Was the ISO a plain dump from disc, compressed and/or scrubbed?

Please provide any additional information below.

Actions

Also available in: Atom PDF