Giovanni Cascione f93548ab56
mali_fbdev fix for fps drop after egl_destroy (#13494)
Currently each time a screen resolution or setting change occurs, fbdev_destroy, fbdev_init and fbdev_set_mode are called in sequence, trying to destroy context and surface (though context pointer seems to remain unchanged) and create again both of them.
However it seems something is wrong with egl_destroy, as after the call fps drops from 60 to 33fps in GUI with huge performance impact, at least with libmali.
Philosophy is changed with this commit to avoid destroying and creating context and surface each time (creation only occurs in fbdev_init and egl_destroy is called only if retroarch is shutting down).
As a minor modification, framebuffer is resetted to 0 on retroarch shutdown to avoid any chance of freezed screen effect.
2022-01-14 15:30:04 +01:00
..
2020-10-05 21:54:07 +02:00
2021-12-19 16:58:01 +01:00
2021-12-19 16:58:01 +01:00
2020-08-15 00:35:15 +02:00
2020-08-25 20:39:06 +02:00
2021-12-04 14:21:12 +01:00
2021-11-09 07:06:04 +01:00