Skip to content

Commit c388cc5

Browse files
committed
feat: 🔖 Version 1.3.2
performance stuff (mostly)
1 parent 48ec2b8 commit c388cc5

File tree

6 files changed

+57
-11
lines changed

6 files changed

+57
-11
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cSpell.words": [
3+
"getprop",
4+
"SCRCPY"
5+
]
6+
}

BUILDING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Building
2+
## Intro
3+
This is the guide to building the latest version of SCRCPY+ for all operating systems. Note: ***PREREQUISITES FOR RUNNING SCRCPY+ ARE DIFFERENT THAN BUILDING***
4+
5+
## Prerequisites
6+
- Windows
7+
- [Node v16](https://nodejs.org/en/)
8+
- NPM (Comes with Node)
9+
- Yarn for Node // run `npm i -g yarn`
10+
- Linux / Mac
11+
- [Node v16](https://nodejs.org/en/)
12+
- NPM (Comes with Node)
13+
- Yarn Package Manager // [Download](https://yarnpkg.com/) OR RUN `sudo npm i -g yarn`
14+
15+
## Build
16+
- Windows
17+
- Edit `src/renderer/nuxt.config.js` & comment the line that says `//Development` by adding 2 slashes `//` in front of the line. Uncomment the line that says `//Production` by removing the 2 slashes at the start of the line.
18+
- run `yarn install`
19+
- run `yarn install`
20+
- run `yarn build`
21+
- the output files should be in the `build` folder
22+
- Linux / Mac
23+
- Edit `src/renderer/nuxt.config.js` & comment the line that says `//Development` by adding 2 slashes `//` in front of the line. Uncomment the line that says `//Production` by removing the 2 slashes at the start of the line.
24+
- Edit `src/renderer/nuxt.config.js` & change the line that says `os: "windows",` to say `os: "linux",`
25+
***NOTE: IF YOU ARE ON MACOS, IT SHOULD STILL SAY LINUX, NOT MACOS***
26+
- run `yarn install`
27+
- run `yarn build`
28+
- the output files should be in the `build` folder

src/renderer/components/device.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
},
7575
7676
checkDevice() {
77+
console.log(this.$router)
7778
this.$scrcpy.execute("adb devices -l")
7879
.then((data) => {
7980
if (data.includes("device product:")) { // Device Detected
@@ -92,12 +93,7 @@
9293
},
9394
9495
mounted() {
95-
96-
setInterval(() => {
97-
this.checkDevice()
98-
}, process.env.devicePollRate);
99-
this.checkDevice()
100-
96+
setInterval(this.checkDevice(), process.env.devicePollRate);
10197
}
10298
10399
}

src/renderer/components/scrcpy.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@
2424
<v-expansion-panel-header>Advanced</v-expansion-panel-header>
2525
<v-expansion-panel-content>
2626

27+
28+
29+
<!-- Sliders -->
30+
<div>Bitrate {{ bitrate }}M</div>
31+
<v-slider v-model="bitrate" max="64" min="1" hint="A higher bitrate makes a clearer image but may increase lag" dense persistent-hint />
32+
<!-- End Sliders -->
33+
34+
35+
36+
2737
<!-- Advanced Actions -->
2838
<v-list-item v-for="(item, i) in advArgs" :key="i">
2939
<div style="display: flex;">
@@ -53,7 +63,7 @@
5363
<!-- Error Dialog -->
5464
<v-dialog v-model="dialog" width="500">
5565
<v-card>
56-
<v-card-title class="text-h5 grey darken-3">An error has occured</v-card-title>
66+
<v-card-title class="text-h5 grey darken-3">An error has occurred</v-card-title>
5767

5868
<v-card-text v-text="dialogText" style="margin-top: 2em;" />
5969

@@ -83,7 +93,7 @@ export default {
8393
}
8494
//console.log("scrcpy"+flags);
8595
86-
this.$scrcpy.execute("scrcpy"+flags)
96+
this.$scrcpy.execute(`scrcpy --bit-rate ${this.bitrate}M`+flags)
8797
.catch((err) => {
8898
if (err.startsWith("INFO:")) return; // Catch information outputs
8999
this.dialog = true;
@@ -105,6 +115,8 @@ export default {
105115
106116
selectedArgs: [],
107117
118+
bitrate: 8,
119+
108120
args: [
109121
{
110122
arg: "--turn-screen-off",

src/renderer/nuxt.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
module.exports = {
99
env: {
1010
version: "1.3.2",
11-
scrcpyPath: "src/extraResources/scrcpy/", //Development
12-
//scrcpyPath: "resources/scrcpy/", //Production
11+
//scrcpyPath: "src/extraResources/scrcpy/", //Development
12+
scrcpyPath: "resources/scrcpy/", //Production
1313
os: "windows",
1414

1515
releasesUrl: "https://api.github.com/repos/Frontesque/scrcpy-plus/releases",

src/renderer/pages/changelog.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<ul>
1414
<li>Make the back button more uniform throughout the app</li>
1515
<li>Add new "Coming Soon" tool "Resource Monitor"</li>
16+
<li>Add building guide to the github (BUILDING.md)</li>
17+
<li>Major device polling improvements</li>
18+
<li>Fix spelling error (im human too)</li>
19+
<li>Finally add a bitrate slider after MANY requests</li>
1620
</ul>
1721
</section>
1822

@@ -58,7 +62,7 @@
5862
<li>Dynamically get the installed version of SCRCPY</li>
5963
<li>Dynamically get the installed version of ADB</li>
6064
<li>Minor UI Tweaks</li>
61-
<li>Multiplatform / Linux Support</li>
65+
<li>Multi-platform / Linux Support</li>
6266
<li>Some Bug Fixes</li>
6367
<li>Take 'Wireless Connection' Development Warning Away</li>
6468
</ul>

0 commit comments

Comments
 (0)