persist.mm.enable.prefetch, if set to true, will enable
prefetching of video input from upstream source to help
improve playback performance for high frame-rate and
high bitrate content
Signed-off-by: Praveen Chavan <Praveen Chavan@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
* Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.
Disable VSync for CPU rendered app, by setting this property to false.
Change-Id: If8c6f9e182eac6d015dbb69fe2a74fc9b3a85c1f
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
* Fixes lags in native screen recorder
* Also set debug.sdm.support_writeback=0
* THIS MIGHT BREAK WIFI DISPLAY
* CHECK WHEN WFD BOOT JARS CAN BE BUILT
Change-Id: I82c5b8b4-b0b0-4ff9-8869-8cb4f11e9012
Signed-off-by: Pranav Kapoor <pranavkapoor001@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and
this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT).
On Qcom devices DeviceAsWebcam has red & blue colors swapped.
Originally we tried swapping HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS
with HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in libgrallocutils,
however that inverted regular camera recording colors in some cases.
[1] d079a82ba4
Change-Id: I6c5f03fe7016f687855351c7ba15270050ea02e2
Signed-off-by: therealmharc <therealmharc@gmail.com>
* for some reason, some apps automatically detects that we're rooted due to verityUtils failing to measure the apps apk fs-verity.
Change-Id: Ib716d6e375c9d1063a958523ad2de028115bcb3c
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
Enable support for the Video Distribution Profile (VDP) on the
IP Multimedia Subsystem (IMS) to enable operator video-calling
functionality on 4G IMS if the carrier supports it.
Change-Id: Iba23e5fb308a7b7868e910bc17634800c10e0a13
Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
- Kernel idle time enabled, as it supports better power management
Change-Id: I2736b5ebf0c97498a1a2854f747547d84757cd9e
Signed-off-by: Guidix <guidixm@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.
Bug: 137973303
Test: MP3 playback
Change-Id: If8eb1d3041161979063bf852e2b0b397e87e7c05
Change-Id: Idff8ed8f4d0e7032054eebea45a62f8a7c5db50c
Signed-off-by: justinweng <justinweng@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
Some devices with video mode panels experience refresh rate mismatches when the screen is turned off. Specifically:
- The scheduler sets the refresh rate to 120 Hz after the screen turns off at 60 Hz (VRR idle).
- However, the HWC ignores this change, resulting in SurfaceFlinger (SF) incorrectly assuming the device is at 120 Hz when the display is turned back on.
- This causes a mismatch, as HWC continues rendering at 60 Hz, leading to inconsistencies.
To enable this behavior, set the following property:
- `debug.sf.defer_refresh_rate_when_off=1`
Change-Id: I46fd9e6b983138c1f625d52a65451eb04ce42820
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
* Seems to improve the HDR processing in Gcam a bit fast
and we don't have any boostframework binaries either
Change-Id: If0b974fd10ce8d09bc8eb91669fa1ab06ac2e546
Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
* Vendor partition is RO and prop cannot be changed there to
disable wide color gamut.
Change-Id: Ie5d90bc608f428c2be11d5159aaec98a6cdfbd03
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
When blur is enabled,
There is severe lag in; Launcher3 while scrolling apps in App drawer, Scrolling through recents and occasionally on QS pull down.
Enabling or completely removing the prop here d6233e0e7c doesn't seem to make an effect.
Explicitly disabling the "Enable GL comp backpressure" prop seems to slove the issue.
Lag & janks are gone now, even with blur.
Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.
Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
debug.stagefright.ccodec=4
is the default value in frameworks.
debug.stagefright.omx_default_rank=0
was used to rank OMX SW codecs lower than OMX HW codecs
but we have removed all OMX SW codecs now.
Change-Id: Idf55ec02c2c0f4d2fa73f949cffef0d820a54570
Caused incoming caller number not being parsed correctly by Phone app on
VoLTE and VoWiFi. No idea why Xiaomi enabled this ancient prop.
Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: I4d3d19b80bedd7410e638c78909a8a910bc10be8
[basamaryan: This is needed to fix RIL on Android U]
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: Ie3fa610f71077b4ee2af1b4d57bd0c30b34f30fa
This is enabled by default on U, and it causes apps like
Chrome and YouTube to render the frame rate at 30FPS when
playing some videos.
Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.
Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
Use 64-bit dex2oat for better dexopt time.
Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
AOSP defaults to v1 on devices shipped with Q or earlier,
explicitly enable v2 for these devices to use 16-byte padding
e575f4ed96/libfscrypt/fscrypt.cpp (L205)
Change-Id: I20e5f31007a2c01bc993c09e644205bf23ebd8ae
This fixes GSI image overriding the default value
Bug: 153852350
Test: Manually verified after flashing the GSI image
Change-Id: I78b415862c420c23121ec03d6953814cd628ea9a
* We aren't using QCOM's perfd but our blobs still check for this.
* To avoid unnecessary errors, let's just add it back.
Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649
Enable backpressure for client composition to avoid jank due to
HWC queue stuffing.
Test: 1. Open Camera
2. Swipe horizontally to go back to previous app.
Bug: 138083790
Change-Id: I3d26aa470c1660b23bd97133f39858f92638aca8