An embodiment of the invention discloses a method of downloading schedule, a terminal device and a computer readable storage medium, in which a threshold T is obtained, the threshold T is a time to refresh the interval of downloading progress, in which the value of the threshold value T is greater than equal to the value of the first critical point, and the first critical point is taken as a brush. The value of the above threshold T is less than equal to the second critical point value, and the value of the above second critical points is increased to the value of the above refresh interval when the above refresh interval is started, and the value of the above threshold value is increased to the value of the above refresh interval when the visual sense is affected. The above threshold T is a periodic refresh of the downloading progress. When the network speed is too slow, the present invention can effectively reduce the downloading rate of the download schedule too low, cause the time interval of the schedule change too long, the download schedule refresh is not fluent, and the speed of the network is too fast when the speed of the network is too fast, which leads to the interface card problem. One
【技术实现步骤摘要】
下载进度刷新方法、终端设备及计算机可读存储介质
本专利技术涉及通信
,尤其涉及一种下载进度刷新的方法、终端设备及计算机可读存储介质。
技术介绍
下载是应用程序中的常见功能。用户通过下载进度条来感知下载行为的执行情况。进度条精确展示了当前的下载进度值,进度条刷新的常见方案是:开始下载任务,在文件的下载量达到下载量阈值的情况下,在显示界面刷新当前下载进度,然后从新开始计算下载量,在下载量重新达到阈值时,再次刷新。由于网络情况复杂,存在很多不稳定因素,因此在上述方案中,可能会导致刷新不流畅或卡顿等问题。
技术实现思路
本专利技术实施例提供一种下载进度刷新的方法,可以有效的解决下载时刷新下载进度不流畅或者卡顿的问题。第一方面,本专利技术实施例提供了一种下载进度刷新的方法,该方法包括:获取阈值T,所述阈值T为刷新下载进度的间隔时长,其中,所述阈值T的取值大于等于第一临界点取值,所述第一临界点取值为刷新间隔时长减小到刷新所述下载进度终端设备开始卡顿时所述刷新间隔时长的取值,所述阈值T的取值小于等于第二临界点取值,所述第二临界点取值为所述刷新间隔时长增大到开始影响视觉感知时所述刷新间隔时长的取值;以所述阈值T为周期刷新所述下载进度。第二方面,本专利技术实施例提供了一种启动计算器的终端设备,包括:获取单元,用于获取阈值T,所述阈值T为刷新下载进度的间隔时长,其中,所述阈值T的取值大于等于第一临界点取值,所述第一临界点取值为刷新间隔时长减小到刷新所述下载进度终端设备开始卡顿时所述刷新间隔时长的取值,所述阈值T的取值小于等于第二临界点取值,所述第二临界点取值为所述刷新间隔时 ...
【技术保护点】
1.一种下载进度刷新的方法,其特征在于,包括:
【技术特征摘要】
1.一种下载进度刷新的方法,其特征在于,包括:获取阈值T,所述阈值T为刷新下载进度的间隔时长,其中,所述阈值T的取值大于等于第一临界点取值,所述第一临界点取值为刷新间隔时长减小到刷新所述下载进度终端设备开始卡顿时所述刷新间隔时长的取值,所述阈值T的取值小于等于第二临界点取值,所述第二临界点取值为所述刷新间隔时长增大到开始影响视觉感知时所述刷新间隔时长的取值;以所述阈值T为周期刷新所述下载进度。2.根据权利要求1所述的方法,其特征在于,在所述获取阈值T之前,所述方法还包括:获取终端设备的硬件配置信息,所述硬件配置信息包括中央处理器的信息和运行内存的信息;根据所述硬件配置信息确定所述刷新所述下载进度终端设备开始卡顿时所述刷新间隔时长的临界点取值。3.根据权利要求1所述的方法,其特征在于,所述以所述阈值T为周期刷新所述下载进度包括:根据当前网络和/或终端设备的状态对所述阈值T进行修正;使用修正后的阈值T为周期刷新所述下载进度。4.根据权利要求3所述的方法,其特征在于,所述根据当前网络和/或终端设备的状态对所述阈值T进行修正包括:根据下载速率对所述阈值T进行修正和/或根据终端设备当前硬件的使用情况对所述阈值T进行修正,其中,所述终端设备当前硬件的使用情况包括中央处理器的使用率和/或运行内存的使用率。5.根据权利要求4所述的方法,其特征在于,所述根据下载速率对所述阈值T进行修正包括:根据在所述阈值T时间段内下载的数据包的大小和所述阈值T计算在所述阈值T时间段内的平均下载速率;若所述平均下载速率高于下载速率上限阈值,...
【专利技术属性】
技术研发人员:王盛,
申请(专利权)人:深圳市金立通信设备有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。