Applied ringbuff to resolv_tailored for reducing memory usage.

This commit is contained in:
genxium
2023-02-15 12:02:07 +08:00
parent 2d179d0cdf
commit 5b7f35b874
19 changed files with 7279 additions and 407 deletions

View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.2" tiledversion="1.2.3" orientation="orthogonal" renderorder="right-down" width="128" height="64" tilewidth="16" tileheight="16" infinite="0" nextlayerid="7" nextobjectid="137">
<map version="1.2" tiledversion="1.2.3" orientation="orthogonal" renderorder="right-down" width="128" height="40" tilewidth="16" tileheight="16" infinite="0" nextlayerid="8" nextobjectid="138">
<tileset firstgid="1" source="tiles0.tsx"/>
<tileset firstgid="65" source="tiles1.tsx"/>
<tileset firstgid="129" source="tiles2.tsx"/>
<layer id="6" name="Ground" width="128" height="64">
<layer id="7" name="Ground" width="128" height="40">
<data encoding="base64" compression="zlib">
eJzt201uwjAQhuEIxCY7KugeqTepumHXC/T+xyCqYimy4sQ4E2bE9y6eDf+e1w4bOHZddwQAAAAAAAAAAACAF/jBP+8Onv29P4M35Rkor50ZaK+dGWivnRlor50ZtK39UmnL5/owegz94/X/on8Ykfsv9V27n/72a0/drPqfBucZeeMSjxm8m5b+W1m9Dv3fv//c9eG88f3p397fytr1vNR9j31A/1hq21vtg4gziNz/ZvQY+vubrr0fefdv3QOt+0O9/3cm3ZffntwqlZ4fTZqBdwuv/odROv9/g3vBwUDpjFq8dst7q5//vP/0O2B6m1V/T/Qv979nvedY9/jcwTPXHPov9+lXZldjrb/1fqL/c/2vo6W5bTn/S3tg7/Nfsz/pX+5v+Z1L/3i8f3cdhXcHz/6/4uivjf7a6K+N/tror43+2uivjf7a6K+N/tror43+2uivjf7a6K+N/tror43+2uivjf7a6K+N/trSf6C8W9Cf/vSn/6v7Y7/+Dyz1uAA=
eJzt2k0OgjAQQGECccMOo+5JvIlx484LeP9jaAxNSEOhlMGZOG/xbfyl81rc2FRV1QAAAAAAAAAAAADAD9zxpd1Bs7/2NWjzPAPPa2cGvtfODHyvnRn4XjszKFv7KdOW6zoKvYb+9vpf6W+G5f5zfZeep7/82kM3qf6Hj25C3DhFYwb/pqT/VlKfQ///7z91f+g2fj/9y/tLWbqfp7rvsQ/ob0tue6l9YHEGlvv3Qq+hv77x2tuBdv/SPVC6P7z3v0XCc/HjQZ8p9X5rwgy0W2j1rwfh/L8+Hgm1gNQZlfjsku/2fv7j/uPfgPFjUv010T/d/xH1niLd47KDNfcc+s/3aRdml2Opv/R+ov+6/ufB3Ny2nP+5PbD3+c/Zn/RP95f8zaW/Pdr/u7ZCu4Nm/6dz9Pdtz/5vZSq2hg==
</data>
</layer>
<objectgroup id="1" name="PlayerStartingPos">
@@ -84,12 +84,12 @@
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="84" x="640" y="224" width="16" height="800">
<object id="84" x="640" y="224" width="16" height="416">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="85" x="1680" y="224" width="16" height="800">
<object id="85" x="1680" y="224" width="16" height="416">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
@@ -149,17 +149,12 @@
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="113" x="640" y="1008" width="1056" height="16">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="114" x="640" y="224" width="1056" height="16">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="119" x="656" y="592" width="1024" height="416">
<object id="119" x="656" y="592" width="512" height="48">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
@@ -169,5 +164,10 @@
<property name="boundary_type" value="barrier"/>
</properties>
</object>
<object id="137" x="1168" y="592" width="512" height="48">
<properties>
<property name="boundary_type" value="barrier"/>
</properties>
</object>
</objectgroup>
</map>

View File

@@ -461,7 +461,7 @@
"array": [
0,
0,
216.50635094610968,
217.52040535921228,
0,
0,
0,

View File

@@ -72,11 +72,14 @@
"__id__": 3
},
{
"__id__": 10
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 50
},
{
"__id__": 51
},
@@ -88,9 +91,6 @@
},
{
"__id__": 54
},
{
"__id__": 55
}
],
"_prefab": null,
@@ -156,9 +156,6 @@
},
{
"__id__": 5
},
{
"__id__": 6
}
],
"_prefab": null,
@@ -220,34 +217,6 @@
"_tmxFile": null,
"_id": "c8MqKDLJdKz7VhPwMjScDw"
},
{
"__type__": "09e1b/tEy5K2qaPIpqHDbae",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"BGMEffect": {
"__uuid__": "64a79efa-97de-4cb5-b2a9-01500c60573a"
},
"crashedByTrapBullet": {
"__uuid__": "1d604e42-8cee-466f-884d-e74cae21ce3b"
},
"highScoreTreasurePicked": {
"__uuid__": "0164d22c-d965-461f-867e-b30e2d56cc5c"
},
"treasurePicked": {
"__uuid__": "7704b97e-6367-420c-b7af-d0750a2bbb30"
},
"countDown10SecToEnd": {
"__uuid__": "261d1d7d-a5cc-4cb7-a737-194427055fd4"
},
"mapNode": {
"__id__": 3
},
"_id": "3crA1nz5xPSLAnCSLQIPOq"
},
{
"__type__": "b3810kDSWtD14RhiYzulYVI",
"_name": "",
@@ -266,7 +235,7 @@
"__uuid__": "d92d4831-cd65-4eb5-90bd-b77021aec35b"
},
"joystickInputControllerNode": {
"__id__": 7
"__id__": 6
},
"confirmLogoutPrefab": null,
"simplePressToGoDialogPrefab": null,
@@ -279,19 +248,19 @@
"forceBigEndianFloatingNumDecoding": false,
"renderFrameIdLagTolerance": 4,
"inputFrameFrontLabel": {
"__id__": 14
"__id__": 13
},
"sendingQLabel": {
"__id__": 16
"__id__": 15
},
"inputFrameDownsyncQLabel": {
"__id__": 18
"__id__": 17
},
"peerInputFrameUpsyncQLabel": {
"__id__": 20
"__id__": 19
},
"rollbackFramesLabel": {
"__id__": 22
"__id__": 21
},
"skippedRenderFrameCntLabel": null,
"_id": "e5xQdv12xLoIRr0b36Pie+"
@@ -301,17 +270,17 @@
"_name": "JoystickContainer",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 7
},
"_children": [
{
"__id__": 45
"__id__": 44
}
],
"_active": true,
"_components": [
{
"__id__": 50
"__id__": 49
}
],
"_prefab": null,
@@ -367,26 +336,26 @@
"_name": "Interactive",
"_objFlags": 0,
"_parent": {
"__id__": 9
"__id__": 8
},
"_children": [
{
"__id__": 7
"__id__": 6
},
{
"__id__": 34
"__id__": 33
},
{
"__id__": 36
"__id__": 35
},
{
"__id__": 40
"__id__": 39
}
],
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 43
}
],
"_prefab": null,
@@ -442,20 +411,20 @@
"_name": "WidgetsAboveAll",
"_objFlags": 0,
"_parent": {
"__id__": 10
"__id__": 9
},
"_children": [
{
"__id__": 12
"__id__": 11
},
{
"__id__": 8
"__id__": 7
}
],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 32
}
],
"_prefab": null,
@@ -515,13 +484,13 @@
},
"_children": [
{
"__id__": 9
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 11
"__id__": 10
}
],
"_prefab": null,
@@ -549,7 +518,7 @@
"array": [
0,
0,
216.50635094610968,
210.4441731196186,
0,
0,
0,
@@ -577,7 +546,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
"__id__": 9
},
"_enabled": true,
"_cullingMask": 4294967295,
@@ -613,35 +582,35 @@
"_name": "DebugInfo",
"_objFlags": 0,
"_parent": {
"__id__": 9
"__id__": 8
},
"_children": [
{
"__id__": 13
"__id__": 12
},
{
"__id__": 15
"__id__": 14
},
{
"__id__": 17
"__id__": 16
},
{
"__id__": 19
"__id__": 18
},
{
"__id__": 21
"__id__": 20
},
{
"__id__": 23
"__id__": 22
},
{
"__id__": 25
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 31
}
],
"_prefab": null,
@@ -697,13 +666,13 @@
"_name": "inputFrameFront",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
"__id__": 13
}
],
"_prefab": null,
@@ -759,7 +728,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 12
},
"_enabled": true,
"_materials": [
@@ -789,13 +758,13 @@
"_name": "sendingQ",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
"__id__": 15
}
],
"_prefab": null,
@@ -851,7 +820,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
"__id__": 14
},
"_enabled": true,
"_materials": [
@@ -881,13 +850,13 @@
"_name": "inputFrameDownsyncQ",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
"__id__": 17
}
],
"_prefab": null,
@@ -943,7 +912,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
"__id__": 16
},
"_enabled": true,
"_materials": [
@@ -973,13 +942,13 @@
"_name": "peerInputFrameUpsyncQ",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 19
}
],
"_prefab": null,
@@ -1035,7 +1004,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 18
},
"_enabled": true,
"_materials": [
@@ -1065,13 +1034,13 @@
"_name": "rollbackFrames",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 21
}
],
"_prefab": null,
@@ -1127,7 +1096,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 20
},
"_enabled": true,
"_materials": [
@@ -1157,13 +1126,13 @@
"_name": "skippedCnt",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 23
}
],
"_prefab": null,
@@ -1219,7 +1188,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 22
},
"_enabled": true,
"_materials": [
@@ -1251,23 +1220,23 @@
"_name": "RoomIdIndicator",
"_objFlags": 0,
"_parent": {
"__id__": 12
"__id__": 11
},
"_children": [
{
"__id__": 26
"__id__": 25
},
{
"__id__": 28
"__id__": 27
}
],
"_active": false,
"_components": [
{
"__id__": 30
"__id__": 29
},
{
"__id__": 31
"__id__": 30
}
],
"_prefab": null,
@@ -1323,13 +1292,13 @@
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 26
}
],
"_prefab": null,
@@ -1385,7 +1354,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 25
},
"_enabled": true,
"_materials": [],
@@ -1413,13 +1382,13 @@
"_name": "BoundRoomIdLabel",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 28
}
],
"_prefab": null,
@@ -1475,7 +1444,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 27
},
"_enabled": true,
"_materials": [],
@@ -1503,7 +1472,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 24
},
"_enabled": true,
"_layoutSize": {
@@ -1536,7 +1505,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 24
},
"_enabled": true,
"_materials": [],
@@ -1566,7 +1535,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 11
},
"_enabled": true,
"_layoutSize": {
@@ -1599,7 +1568,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
@@ -1626,13 +1595,13 @@
"_name": "CountdownSeconds",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 34
}
],
"_prefab": null,
@@ -1688,7 +1657,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 33
},
"_enabled": true,
"_materials": [
@@ -1718,11 +1687,11 @@
"_name": "BtnA",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 7
},
"_children": [
{
"__id__": 37
"__id__": 36
}
],
"_active": true,
@@ -1780,16 +1749,16 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 37
},
{
"__id__": 39
"__id__": 38
}
],
"_prefab": null,
@@ -1845,7 +1814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 36
},
"_enabled": true,
"_materials": [
@@ -1879,7 +1848,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 36
},
"_enabled": true,
"alignMode": 0,
@@ -1906,11 +1875,11 @@
"_name": "BtnB",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 7
},
"_children": [
{
"__id__": 41
"__id__": 40
}
],
"_active": true,
@@ -1968,16 +1937,16 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 39
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 41
},
{
"__id__": 43
"__id__": 42
}
],
"_prefab": null,
@@ -2033,7 +2002,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 40
},
"_enabled": true,
"_materials": [
@@ -2067,7 +2036,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 40
},
"_enabled": true,
"alignMode": 0,
@@ -2094,7 +2063,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
@@ -2121,20 +2090,20 @@
"_name": "JoystickBG",
"_objFlags": 0,
"_parent": {
"__id__": 7
"__id__": 6
},
"_children": [
{
"__id__": 46
"__id__": 45
}
],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 47
},
{
"__id__": 49
"__id__": 48
}
],
"_prefab": null,
@@ -2190,13 +2159,13 @@
"_name": "Joystick",
"_objFlags": 0,
"_parent": {
"__id__": 45
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
"__id__": 46
}
],
"_prefab": null,
@@ -2252,7 +2221,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
"__id__": 45
},
"_enabled": true,
"_materials": [
@@ -2286,7 +2255,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 44
},
"_enabled": true,
"_materials": [
@@ -2320,7 +2289,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 44
},
"_enabled": true,
"alignMode": 0,
@@ -2347,7 +2316,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 6
},
"_enabled": true,
"alignMode": 0,
@@ -2449,16 +2418,16 @@
},
"_enabled": true,
"translationListenerNode": {
"__id__": 7
"__id__": 6
},
"zoomingListenerNode": {
"__id__": 3
},
"stickhead": {
"__id__": 46
"__id__": 45
},
"base": {
"__id__": 45
"__id__": 44
},
"joyStickEps": 0.1,
"magicLeanLowerBound": 0.414,
@@ -2479,10 +2448,10 @@
"linearMovingEps": 0.1,
"scaleByEps": 0.0375,
"btnA": {
"__id__": 36
"__id__": 35
},
"btnB": {
"__id__": 40
"__id__": 39
},
"_id": "e9oVYTr7ROlpp/IrNjBUmR"
}

View File

@@ -1,66 +0,0 @@
cc.Class({
extends: cc.Component,
properties: {
BGMEffect: {
type: cc.AudioClip,
default: null
},
crashedByTrapBullet: {
type: cc.AudioClip,
default: null
},
highScoreTreasurePicked: {
type: cc.AudioClip,
default: null
},
treasurePicked: {
type: cc.AudioClip,
default: null
},
countDown10SecToEnd: {
type: cc.AudioClip,
default: null
},
mapNode: {
type: cc.Node,
default: null
},
},
// LIFE-CYCLE CALLBACKS:
onLoad() {
cc.audioEngine.setEffectsVolume(1);
cc.audioEngine.setMusicVolume(0.5);
},
stopAllMusic() {
cc.audioEngine.stopAll();
},
playBGM() {
if(this.BGMEffect) {
cc.audioEngine.playMusic(this.BGMEffect, true);
}
},
playCrashedByTrapBullet() {
if(this.crashedByTrapBullet) {
cc.audioEngine.playEffect(this.crashedByTrapBullet, false);
}
},
playHighScoreTreasurePicked() {
if(this.highScoreTreasurePicked) {
cc.audioEngine.playEffect(this.highScoreTreasurePicked, false);
}
},
playTreasurePicked() {
if(this.treasurePicked) {
cc.audioEngine.playEffect(this.treasurePicked, false);
}
},
playCountDown10SecToEnd() {
if(this.countDown10SecToEnd) {
cc.audioEngine.playEffect(this.countDown10SecToEnd, false);
}
},
});

View File

@@ -1,9 +0,0 @@
{
"ver": "1.0.5",
"uuid": "09e1bfed-132e-4ada-a68f-229a870db69e",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@@ -33,7 +33,7 @@ cc.Class({
/** Init required prefab ended. */
self.inputFrameUpsyncDelayTolerance = 2;
self.collisionMinStep = 2;
self.collisionMinStep = 8;
self.renderCacheSize = 1024;
self.serverFps = 60;
@@ -98,7 +98,7 @@ cc.Class({
const p2Vpos = gopkgs.WorldToVirtualGridPos(boundaryObjs.playerStartingPositions[1].x, boundaryObjs.playerStartingPositions[1].y);
const colliderRadiusV = gopkgs.WorldToVirtualGridPos(12.0, 0);
const speciesIdList = [4096, 0];
const speciesIdList = [1, 0];
const chConfigsOrderedByJoinIndex = gopkgs.GetCharacterConfigsOrderedByJoinIndex(speciesIdList);
const startRdf = window.pb.protos.RoomDownsyncFrame.create({

File diff suppressed because one or more lines are too long

View File

@@ -27,8 +27,7 @@
android:label="@string/app_name"
android:usesCleartextTraffic="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
android:taskAffinity="" >
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@@ -17,7 +17,8 @@
},
"encryptJs": false,
"excludeScenes": [
"8491a86c-bec9-4813-968a-128ca01639e0"
"2ff474d9-0c9e-4fe3-87ec-fbff7cae85b4",
"92160186-3e0d-4e0a-ae20-97286170ba58"
],
"fb-instant-games": {},
"includeSDKBox": false,
@@ -37,7 +38,7 @@
"REMOTE_SERVER_ROOT": "",
"orientation": "portrait"
},
"startScene": "2ff474d9-0c9e-4fe3-87ec-fbff7cae85b4",
"startScene": "8491a86c-bec9-4813-968a-128ca01639e0",
"title": "DelayNoMore",
"webOrientation": "landscape",
"wechatgame": {