Overlay Display Control Layer Separation for Code Complexity Reduction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing systems face complexity and inefficiency in adding new services to existing game services, requiring extensive branch codes and increased code maintenance, making it difficult to quickly apply and manage additional services.
Innovation Solution
An overlay display control method and system that separates and analyzes existing source code and additional service code, using a first virtual layer for main services and a second virtual layer for additional services, allowing for reduced in-code branching and simplified integration of new features without altering the existing code.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If branch codes are added to existing source code to provide additional services, then service functionality is improved, but code complexity and maintenance difficulty increase
Solution Approach 1:
The patent segments the codebase into two distinct parts: original source code and overlay source code. The overlay source code contains additional service functionality that operates independently without modifying the original code structure. This segmentation allows new services to be added through separate code modules that can be selectively activated, thereby improving service functionality while maintaining low code complexity in the core system.
Solution Approach 2:
The patent extracts additional service functionality from the main source code and places it into separate overlay source code files. Instead of integrating new services directly into the existing codebase (which would increase complexity), the new functionality is taken out and managed independently through overlay mechanisms, allowing the original code to remain simple and maintainable.
2Adaptability or versatility
If extensive branch codes are added to support new services, then service versatility is improved, but code maintenance effort increases
Solution Approach 1:
By segmenting the code into original and overlay portions, the patent enables independent maintenance of each layer. Developers can modify overlay source code for new services without affecting the original codebase, and vice versa. This reduces maintenance effort significantly as bugs and updates can be isolated to specific layers.
Solution Approach 2:
The patent extracts service-specific logic into separate overlay source code files, which can be independently maintained, tested, and updated. This extraction allows maintenance teams to work on additional services without needing to understand or modify the core original code, thereby reducing overall maintenance effort and improving code repairability.
3Adaptability or versatility
If the source code is modified to add additional services, then service functionality is improved, but the risk of introducing errors increases
Solution Approach 1:
The patent extracts additional service functionality into separate overlay source code that does not modify the original code structure. This extraction approach ensures that changes to add new services are isolated from the proven stable original code, thereby reducing the risk of introducing errors into the core system while still enabling enhanced service functionality.
Solution Approach 2:
The patent introduces an overlay mechanism as an intermediary layer between the original code and new service functionality. This intermediary overlay source code acts as a buffer that allows new features to be added without directly touching or potentially breaking the original code, thus maintaining reliability while improving adaptability.
4Adaptability or versatility
If the total amount of source code is increased to provide additional services, then service capability is improved, but code management difficulty increases
Solution Approach 1:
The patent segments the growing codebase into clearly defined original and overlay portions with distinct management rules. The overlay source code is organized as separate modules that can be independently versioned, compiled, and deployed. This segmentation makes managing large amounts of code much easier as developers can focus on specific layers without being overwhelmed by the entire codebase.
Solution Approach 2:
The patent implements a dynamic code management system where overlay source code can be selectively activated or deactivated based on service requirements. This dynamic approach allows the system to manage varying amounts of code efficiently - only loading and managing overlay code when additional services are needed, thereby reducing ongoing code management difficulty while maintaining service capability.
Data Source
AI summary
A method of providing an overlay display control performed on an electronic device, the method including: displaying a progress screen of a main service associated with an application through a first virtual layer under control of the application executed on the electronic device; displaying a user interface on a preset area of the first virtual layer, the user interface configured to receive a selection signal on a control function associated with the main service; displaying a second virtual layer for providing an additional service associated with the main service overlapping the first virtual layer in response to a progress of the main service meeting a preset condition; and processing a progress of the additional service, including: hooking a selection signal input on a partial area of the second virtual layer; and calling a control function corresponding to the partial area of the second virtual layer.


