উন্নত ব্যবহার
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
নিম্নলিখিত বিভাগগুলি লাইব্রেরির স্বাভাবিক ক্রিয়াকলাপের জন্য প্রয়োজনীয় নয় এমন উন্নত ব্যবহারের বিষয়গুলির রূপরেখা দেয়৷
অন্যান্য সমর্থিত ট্রেসার
টিউনিং ফর্ক একাধিক ট্রেসার সমর্থন করে। নিম্নলিখিত যন্ত্র কী সহ ট্রেসার সমর্থিত:
- ফ্রেমের মধ্যে সময় শুরু হয় (যাকে
PACED_FRAME_TIME
বলা হয়) - CPU সময়: ফ্রেমের শুরু থেকে CPU কাজ শেষ হওয়ার মধ্যবর্তী সময় (যাকে
CPU_TIME
বলা হয়) - GPU সময়: পূর্ববর্তী ফ্রেমটি GPU দ্বারা পরিচালনা করার সময় (যাকে
GPU_TIME
বলা হয়) - কাঁচা ফ্রেম সময়, CPU এবং GPU সময়ের সর্বাধিক হিসাবে সংজ্ঞায়িত (যাকে
RAW_FRAME_TIME
বলা হয়)। এই বিকল্প এবং PACED_FRAME_TIME
মধ্যে পার্থক্য হল যে এই বিকল্পটি Swappy বা VSync দ্বারা অন্তর্ভুক্ত কোনো অপেক্ষার সময় অন্তর্ভুক্ত করে না৷
আপনি রেফারেন্স ডকুমেন্টেশনে এই উপকরণ কীগুলি খুঁজে পেতে পারেন। আপনি যখন অ্যান্ড্রয়েড ফ্রেম পেসিং লাইব্রেরি সক্ষম করেন তখন এই কীগুলির মধ্যে কিছু স্বয়ংক্রিয়ভাবে ব্যবহার করা হয়, কিন্তু আপনি যদি এই লাইব্রেরিটি সক্ষম না করেন তবে আপনার সেগুলি স্পষ্টভাবে ব্যবহার করা উচিত৷
বিশ্বস্ততার পরামিতি পান
TFErrorCode TuningFork_getFidelityParameters(const CProtobufSerialization* defaultParams, CProtobufSerialization* params, uint32_t timeout_ms);
আপনি সেটিংসে TuningFork_init
এ fidelity_params_callback
পাস করলে বা লাইব্রেরি স্কেল মোডে থাকলে, আপনাকে এই ফাংশনটি কল করার দরকার নেই।
এই ফাংশন বিশ্বস্ততা পরামিতি পুনরুদ্ধার করতে একটি সার্ভারের সাথে যোগাযোগ করে। নিম্নলিখিতগুলির একটি না হওয়া পর্যন্ত এটি ব্লক করে:
- ফিডেলিটি প্যারামিটারগুলি পুনরুদ্ধার করা হয়,
TFERROR_OK
এর রিটার্ন মানের সাথে এবং returnedParams
প্যারামিটারগুলি সঞ্চয় করে৷ এই ক্ষেত্রে, সমস্ত পরবর্তী টিক ডেটা returnedParams
এর সাথে যুক্ত। -
TFERROR_TIMEOUT
এর রিটার্ন মান সহ timeout_ms
পাসের সমান মিলিসেকেন্ডের একটি সংখ্যা। এই ক্ষেত্রে, পরবর্তী সমস্ত টিক ডেটা defaultFidelityParams
সাথে যুক্ত।
এই ফাংশনের আগে আপনাকে অবশ্যই TuningFork_init()
কল করতে হবে, এবং আপনাকে এটিকে মূল থ্রেড থেকে একটি পৃথক থ্রেডে কল করতে হবে ( TuningFork_startFidelityParamDownloadThread()
আপনার জন্য এটি করে এমন একটি ইউটিলিটি ফাংশনের জন্য দেখুন)। আপনি এই ফাংশনটিকে আবার কল করতে পারেন, উদাহরণস্বরূপ লেভেল-লোডিং সময়ে, আবার সার্ভার থেকে বিশ্বস্ততা পরামিতি পুনরুদ্ধার করতে। এটি আপনাকে শুধুমাত্র স্টার্ট-আপে পুনরায় লোড করার পরিবর্তে পরামিতিগুলিকে গতিশীলভাবে আপডেট করতে দেয়। যদি নতুন বিশ্বস্ততা পরামিতিগুলি ডাউনলোড করা হয় বা একটি নতুন ডিফল্ট ব্যবহার করা হয়, তবে সমস্ত পূর্ববর্তী টিক ডেটা জমা দেওয়া হয়।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["The following sections outline advanced usage topics not needed for normal\noperation of the library.\n\nOther supported tracers\n\nTuning Fork supports multiple tracers. Tracers with the following instrument\nkeys are supported:\n\n- Time between frame starts (called `PACED_FRAME_TIME`)\n- CPU Time: Time between the start of the frame and the end of the CPU work for the frame (called `CPU_TIME`)\n- GPU Time: Time for the previous frame to be handled by the GPU (called `GPU_TIME`)\n- The raw frame time, defined as the maximum of the CPU and GPU time (called `RAW_FRAME_TIME`). The difference between this option and `PACED_FRAME_TIME` is that this option does not include any wait time included by Swappy or VSync.\n\nYou can find these instrument keys in the\n[reference documentation](/games/sdk/reference/performance-tuner/custom-engine).\nSome of these keys are used automatically when you enable the Android Frame\nPacing library, but if you are not enabling this library, you should use them\nexplicitly.\n\nGet fidelity parameters\n\n[`TFErrorCode TuningFork_getFidelityParameters(const CProtobufSerialization*\ndefaultParams, CProtobufSerialization* params, uint32_t\ntimeout_ms);`](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork#tuningfork_getfidelityparameters)\n\nIf you pass `fidelity_params_callback` to `TuningFork_init` in settings or the\nlibrary is in scaled mode, you do not need to call this function.\n\nThis function contacts a server to retrieve fidelity parameters. It blocks until\none of the following occurs:\n\n- Fidelity parameters are retrieved, with a return value of `TFERROR_OK` and `returnedParams` store the parameters. In this case, all subsequent tick data is associated with `returnedParams`.\n- A number of milliseconds equal to `timeout_ms` passes, with a return value of `TFERROR_TIMEOUT`. In this case, all subsequent tick data is associated with `defaultFidelityParams`.\n\nYou must call `TuningFork_init()` before this function, and you must call it on\na separate thread from the main thread (see\n[`TuningFork_startFidelityParamDownloadThread()`](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork-extra#tuningfork_startfidelityparamdownloadthread)\nfor a utility function that does this for you). You can call this function\nagain, for example at level-loading time, to retrieve fidelity parameters from\nthe server again. This allows you to dynamically update parameters rather than\nhaving to reload them only at start-up. If new fidelity parameters are\ndownloaded or a new default is used, all previous tick data is submitted."]]