|
Post by AnthroHeart on Mar 17, 2024 3:03:39 GMT
You may provide your feedback for the Intention Repeater Android app in this thread.
Be sure to provide the version number.
|
|
|
Post by sound on Mar 22, 2024 13:49:38 GMT
Would be great if you made the app keep the screen awake.
|
|
|
Post by AnthroHeart on Mar 22, 2024 15:26:13 GMT
Would be great if you made the app keep the screen awake. There is another app called Screen Alive that I use to keep the screen on all the time when set.
|
|
|
Post by nathanmyersc on Mar 23, 2024 19:42:56 GMT
You should detect what type of CPU the phone has and add an option that multithreads the intention repeater creating 2 threads for every core the phone has.
heres how you detect the number of cores. according to GPT.
import android.os.Build
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
fun getNumCores(): Int {
return try {
// Read from /sys/devices/system/cpu/ to count CPU cores
val cpuInfoFile = File("/sys/devices/system/cpu/")
val files = cpuInfoFile.listFiles { file -> file.name.startsWith("cpu") }
files?.size ?: 0
} catch (e: Exception) {
e.printStackTrace()
// Fallback in case of any exception
Runtime.getRuntime().availableProcessors()
}
}
fun main() {
val numCores = getNumCores()
println("Number of CPU cores: $numCores")
}
|
|
|
Post by reden on Mar 23, 2024 20:34:56 GMT
You should detect what type of CPU the phone has and add an option that multithreads the intention repeater creating 2 threads for every core the phone has. heres how you detect the number of cores. according to GPT. import android.os.Build
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
fun getNumCores(): Int {
return try {
// Read from /sys/devices/system/cpu/ to count CPU cores
val cpuInfoFile = File("/sys/devices/system/cpu/")
val files = cpuInfoFile.listFiles { file -> file.name.startsWith("cpu") }
files?.size ?: 0
} catch (e: Exception) {
e.printStackTrace()
// Fallback in case of any exception
Runtime.getRuntime().availableProcessors()
}
}
fun main() {
val numCores = getNumCores()
println("Number of CPU cores: $numCores")
} Android Repeater is using Kotlin. Also, multithreading may get toasty on a phone. Even 1 core fully used in my Galaxy A51 generates a gentle warmth. The frequency of overheating may depend on the CPU and its type (Exynos, Snapdragon etc)
|
|
|
Post by nathanmyersc on Mar 23, 2024 20:44:56 GMT
You should detect what type of CPU the phone has and add an option that multithreads the intention repeater creating 2 threads for every core the phone has. heres how you detect the number of cores. according to GPT. import android.os.Build
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
fun getNumCores(): Int {
return try {
// Read from /sys/devices/system/cpu/ to count CPU cores
val cpuInfoFile = File("/sys/devices/system/cpu/")
val files = cpuInfoFile.listFiles { file -> file.name.startsWith("cpu") }
files?.size ?: 0
} catch (e: Exception) {
e.printStackTrace()
// Fallback in case of any exception
Runtime.getRuntime().availableProcessors()
}
}
fun main() {
val numCores = getNumCores()
println("Number of CPU cores: $numCores")
} Android Repeater is using Kotlin. Also, multithreading may get toasty on a phone. Even 1 core fully used in my Galaxy A51 generates a gentle warmth. The frequency of overheating may depend on the CPU and its type (Exynos, Snapdragon etc) Well it should be optional. My phone can totally handle it.
|
|
|
Post by AnthroHeart on Aug 19, 2024 6:23:08 GMT
You should detect what type of CPU the phone has and add an option that multithreads the intention repeater creating 2 threads for every core the phone has. heres how you detect the number of cores. according to GPT. import android.os.Build
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
fun getNumCores(): Int {
return try {
// Read from /sys/devices/system/cpu/ to count CPU cores
val cpuInfoFile = File("/sys/devices/system/cpu/")
val files = cpuInfoFile.listFiles { file -> file.name.startsWith("cpu") }
files?.size ?: 0
} catch (e: Exception) {
e.printStackTrace()
// Fallback in case of any exception
Runtime.getRuntime().availableProcessors()
}
}
fun main() {
val numCores = getNumCores()
println("Number of CPU cores: $numCores")
} There is no need for multithreading now that we know we can run at just 3Hz and have it be more effective. Unless you wanted several instances of it running at that frequency.
|
|