Project

General

Profile

Emulator Issues #5780

OGL: only update texture params if they changed

Added by degasus over 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

In the OGL backend, texture parameters will be set on every texture bind (so once per bound texture per indexed draw).
Texture params are part of the texture object, so binding one texture will also set the old texture params of this texture.

So this patch check the params on every bind and set them on changes.

At least my gpu driver (nvidia 310.14 amd64 linux) will not cache texture params, so there will be a noticeable speedup.

History

#1 Updated by degasus over 7 years ago

merged in immediate-removal, should become to master sometimes...

#3 Updated by parlane over 7 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF